Look at the Nuxt 3 documentation to learn more.
developmerge your work here; keep this up to date with the "development" environment / dev tagstagingkeep this up to date with the "staging" environment / stage tagproductionkeep this up to date with the "production" environment / prod tag
By default, the .env.example and nuxt.config.ts nitro.devProxy is setup to proxy requests from your local machine to the dev server in the cloud. This is to address CORS issues, and not require a local dev server on your machine to run.
If you do want to setup a local dev server, you must edit the nitro.devProxy section in nuxt.config.ts. See lines 47-49.
# Copy `.env.example` to `.env` and adjust values as needed.
# Nuxt automatically loads .env files. No need to manually export these.
cp .env.example .env
# install deps (first time only)
npm install
# start dev server
npm run devIf you run npm run dev and nothing happens, double check your .env file.
Undefined environment variables are not handled gracefully right now.