Build and Preview
This is a member-only chapter. Log in with your Signal Over Noise membership email to continue.
Log in to readModule 2 · Section 7 of 8
Build and Preview
To see what the production build looks like:
npm run build
npm run preview
The build command generates static HTML into dist/. The preview command serves that directory locally. This is what your visitors will actually get — no development server, no hot reload, just the output.
Get in the habit of running a build before you deploy. Errors that the dev server tolerates will often fail at build time.