feat: skip rendering if env.BUNDLE_ONLY is truthy (#2890)

pull/2893/head
Divyansh Singh 1 year ago committed by GitHub
parent 0088434895
commit d40eb1903b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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())

Loading…
Cancel
Save