Alias: blitz b
Create a production build of your Blitz app. It compiles your Blitz app
into Next.js runtime code inside .next
This is a super thin wrapper over Next CLI to improve environment variable loading.
blitz dev -e stagingIt does the following:
.env.X and .env.X.local files based on the -e X
flag that you specify. Ex: -e staging loads .env.staging.process.env.APP_ENV to the env name. Ex: -e staging =>
APP_ENV=staging.| Option | Shorthand | Description | Default |
|---|---|---|---|
--env | -e | Set app environment name. Read more. | None |
blitz build