Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# yarn
yarn install
Start the development server on http://localhost:3000
yarn dev
Build the application for production:
yarn build
Start the application for production:
yarn start
Locally preview production build:
yarn preview
Generate static files:
yarn generate
Environment variables are stored in the directory ./config/.env.{env}
To define the deployment environment, you need to initialize the variable
APP_ENV
=dev
|staging
|prod
in .env file on root directory
APP_ENV=dev