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
Preview environments are designed for testing changes before merging them into production. So, they have a simpler setup compared to production environments:
19
+
Preview environments are designed for testing changes before merging them into production. So, they have a simpler setup compared to [production environments](../long-lived/page.mdx):
20
20
21
21
- Medusa automatically scales preview environments to zero after ten minutes of inactivity. So, if no one is using the preview environment, it will automatically shut down to save resources.
22
22
- Preview environments run on a single server instance, which is sufficient for testing changes.
23
23
24
-
The simpler setup is sufficient for testing changes. However, some customizations like scheduled jobs and subscribers may not work as expected since the preview environment may be inactive. You can still use these customizations in long-lived environments normally.
24
+
### Preview Environment Inactivity
25
+
26
+
Since Preview environments are only meant for testing, they are put to sleep after ten minutes of inactivity.
27
+
28
+
So, if you're testing scheduled jobs or events, they may not work as expected in preview environments. They will work as expected in long-lived environments, such as Staging or Production.
25
29
26
30
---
27
31
@@ -108,14 +112,6 @@ You can change the environment from which the preview environment's database is
108
112
109
113
---
110
114
111
-
## Preview Environment Inactivity
112
-
113
-
Since Preview environments are only meant for testing, they are put to sleep after ten minutes of inactivity.
114
-
115
-
So, if you're testing scheduled jobs or events, they may not work as expected in preview environments. They will work as expected in long-lived environments, such as Staging or Production.
116
-
117
-
---
118
-
119
115
## Delete Preview Environment
120
116
121
117
Preview environments are automatically deleted when their PR is merged or closed. However, you can also delete them manually if needed.
0 commit comments