Skip to content

Commit

Permalink
feature/discussion 1117 Isolation Mode (v1) (#1206)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
thescientist13 committed Jun 2, 2024
1 parent 1a21f68 commit e8c2daf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/lifecycles/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ async function getHybridServer(compilation) {
} else if (isApiRoute) {
const apiRoute = manifest.apis.get(url.pathname);
const entryPointUrl = new URL(`.${apiRoute.path}`, outputDir);

let body, status, headers, statusText;

if (apiRoute.isolation || isolationMode) {
Expand Down

0 comments on commit e8c2daf

Please sign in to comment.