- Install Nodejs 20 (I suggest using nvm and also setting up autoloading .nvmrc to ensure proper version is used)
cp .env.example .env.local
to make local copy of environment variables (Fill in any missing values from whatever secret manager)npm ci
to install the goodsnpm run dev
to start the goods- Profit
Prefix all the commands below with npm run
to use them
Commands | Description |
---|---|
dev |
Starts development server |
build |
Builds site for production |
build:pages |
For building on Cloudflare Pages |
preview |
For building and running production locally like Cloudfare Pages to debug prod stuff |
start |
For starting production server for the lambdas, SSGs, SSRs, SSDs, and the ABCs |
lint |
For fixing your bad code |
Automatically with Cloudflare Pages stalking our main branch 👀