From b580af43639c43d53b6328ff5b88f5de68163af9 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Sat, 9 Mar 2024 19:30:09 -0500 Subject: [PATCH] feature/discussion 1117 Isolation Mode (v1) (#1206) * isolation mode for SSR pages and API routes for greenwood serve * documentation for isolation mode option and global config test case * misc refactoring * set isolation mode to true for Lit renderer plugin * set isolation mode to true for Lit renderer plugin --- www/pages/docs/server-rendering.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/www/pages/docs/server-rendering.md b/www/pages/docs/server-rendering.md index b2252324e..3f68ae909 100644 --- a/www/pages/docs/server-rendering.md +++ b/www/pages/docs/server-rendering.md @@ -226,6 +226,20 @@ export const prerender = true; > You can enable this for all pages using the [prerender configuration](/docs/configuration/#prerender) option. ### Isolation +<<<<<<< HEAD +======= + +To execute an SSR page in its own request context when running `greenwood serve`, you can export an `isolation` option from your page set to `true`. + +```js +export const isolation = true; +``` + +> For more information and how you can enable this for all pages, please see the [isolation configuration](/docs/configuration/#isolation) docs. + + +### Custom Imports +>>>>>>> 55f36b76 (feature/discussion 1117 Isolation Mode (v1) (#1206)) To execute an SSR page in its own request context when running `greenwood serve`, you can export an `isolation` option from your page set to `true`.