Skip to content

Commit d40eb19

Browse files
authoredAug 31, 2023
feat: skip rendering if env.BUNDLE_ONLY is truthy (#2890)
1 parent 0088434 commit d40eb19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/node/build/build.ts

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ export async function build(
4545
buildOptions
4646
)
4747

48+
if (process.env.BUNDLE_ONLY) {
49+
return
50+
}
51+
4852
const entryPath = path.join(siteConfig.tempDir, 'app.js')
4953
const { render } = await import(pathToFileURL(entryPath).toString())
5054

0 commit comments

Comments
 (0)
Please sign in to comment.