🚀Announcing Flightcontrol - Easily Deploy Blitz.js and Next.js to AWS 🚀
Back to Documentation Menu

blitz build

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.

It does the following:

  1. Loads .env.production.
  2. Sets process.env.APP_ENV to production
  3. Passes all other arguments directly to the next build command

Options

OptionShorthandDescriptionDefault
--inspectEnable the Node.js inspectorfalse

Examples

blitz build

Idea for improving this page? Edit it on GitHub.