You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/development/managing-environments.mdx
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,17 @@ A `Development` instance is Clerk's default instance type and has characteristic
11
11
12
12
Some notable examples of `Development`-only characteristics in a Clerk application are:
13
13
14
-
- A `Development` banner is shown prominently in the Clerk Dashboard to make clear you're managing or configuring non-production data
15
-
- Email and SMS templates are prefixed with the environment type to prevent against using `Development` instances for production purposes
16
-
- Some social connections use shared credentials by default
17
-
-[The Account Portal](/docs/guides/customizing-clerk/account-portal) will use a Clerk development domain that ends with `accounts.dev` instead of your app's production domain
18
-
- OAuth consent screens will show the development domain that ends with `accounts.dev` instead of your production domain
19
-
- Search engines will not be able to crawl and index your application
20
-
- Development instances have a 100 users cap and user data can not be transferred between instances
14
+
- A `Development` banner is shown prominently in the Clerk Dashboard to make clear you're managing or configuring non-production data.
15
+
- Email and SMS templates are prefixed with the environment type to prevent against using `Development` instances for production purposes.
16
+
- Some social connections use shared credentials by default.
17
+
-[The Account Portal](/docs/guides/customizing-clerk/account-portal) will use a Clerk development domain that ends with `accounts.dev` instead of your app's production domain.
18
+
- OAuth consent screens will show the development domain that ends with `accounts.dev` instead of your production domain.
19
+
- Search engines will not be able to crawl and index your application.
20
+
- Development instances are capped at 100 users, and user data can not be transferred between instances.
21
+
- The architecture of Clerk's sessions management is different in development environments compared to production environments, due to the need to communicate cross-domain between `localhost` and `<slug>.accounts.dev`. The `__clerk_db_jwt` object is _only_ used in development environments. For more specific details on the differences between Clerk's session management architecture in development and production environments, see the [technical breakdown below](#session-architecture-differences).
21
22
22
23
> [!NOTE]
23
-
> All paid functionality is available in a `Development` instance. However, when you deploy your application to `Production`, you will be asked to upgrade to a `Pro` account. See [our pricing page](/pricing) for full details.
24
+
> All paid functionality is available in a `Development` instance. However, when you deploy your application to `Production`, you will be asked to upgrade to a `Pro` account if you are using paid features. See [our pricing page](/pricing) for full details.
24
25
25
26
## Production instance
26
27
@@ -100,3 +101,12 @@ To use an additional root domain, you must first configure your host to deploy p
100
101
-**Netlify:** use the [Automatic Deploy Subdomain](https://docs.netlify.com/domains-https/custom-domains/automatic-deploy-subdomains/) feature.
101
102
102
103
You can configure this environment with either your development API keys (recommended) or you can create an additional production instance and use those production API keys.
104
+
105
+
## Session architecture differences
106
+
107
+
> [!TIP]
108
+
> In order to understand this section, it's recommended to have a solid understanding of how Clerk's session management architecture works. For more information on this topic, check out the guide on [how Clerk works](/docs/guides/how-clerk-works/overview).
109
+
110
+
Clerk manages session state differently in production and development environments.
Copy file name to clipboardExpand all lines: docs/guides/how-clerk-works/overview.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,7 +263,7 @@ For this reason:
263
263
1. Never deploy a development environment to production.
264
264
1. Do not rely on `__clerk_db_jwt` in your application code, as it will break in production.
265
265
266
-
For more information on the differences between development and production environments, see the [dedicated guide on Clerk environments](/docs/guides/development/managing-environments).
266
+
For more information on the differences between development and production environments, see the [dedicated guide on Clerk environments](/docs/guides/development/managing-environments#session-architecture-differences).
267
267
268
268
### Session token
269
269
@@ -344,4 +344,4 @@ This server -> browser -> FAPI request includes the client token, so FAPI is abl
344
344
- the anatomy of clerk's sign up and sign in flows
0 commit comments