Skip to content

Commit

Permalink
feat: skip rendering if env.BUNDLE_ONLY is truthy (#2890)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Aug 31, 2023
1 parent 0088434 commit d40eb19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node/build/build.ts
Expand Up @@ -45,6 +45,10 @@ export async function build(
buildOptions
)

if (process.env.BUNDLE_ONLY) {
return
}

const entryPath = path.join(siteConfig.tempDir, 'app.js')
const { render } = await import(pathToFileURL(entryPath).toString())

Expand Down

0 comments on commit d40eb19

Please sign in to comment.