Look at the Nuxt 3 documentation to learn more.
Only allowed PORT is 3999 so make sure to run this project on this port:
export PORT=3999
set the domain as ENV VARIABLE which you want to run
export DEFAULT_PAGE_DOMAIN=lahore.abbitest1.com
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install
Start the development server on http://localhost:3000
npm run dev
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Generate fully static site:
npm run generate
npx serve dist -p 3999
Run this command if you got heap out of memory exception:
export NODE_OPTIONS='--max_old_space_size=6144'
For Node=20> bug workaround, mostly happened in code pipelines i.e gitlab CI:
export NODE_OPTIONS='--no-network-family-autoselection'
For serving the project after statically generating run:
npx serve dist
Check out the deployment documentation for more information.