Skip to content

Commit

Permalink
feat: add static prerender env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 5, 2022
1 parent 3fb5869 commit 3bd48e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export const getRollupConfig = (nitro: Nitro) => {
// Build-time environment variables
const buildEnvVars = {
NODE_ENV: nitro.options.dev ? 'development' : (nitro.options.preset === 'nitro-prerender' ? 'prerender' : 'production'),
prerender: nitro.options.preset === 'nitro-prerender',
server: true,
client: false,
dev: String(nitro.options.dev),
Expand Down

0 comments on commit 3bd48e3

Please sign in to comment.