Look at the nuxt 3 documentation to learn more.
Make sure to install the dependencies:
npm 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
Checkout the deployment documentation for more information.
You can use miniflare, a local Cloudflare Workers development server, to test your app locally:
NITRO_PRESET=cloudflare yarn build
npx miniflare .output/server/index.mjs --site .output/public
Install wrangler and login to your Cloudflare account:
npm i @cloudflare/wrangler -g
wrangler login
Generate website with cloudflare
preset:
NITRO_PRESET=cloudflare yarn build
You can preview locally:
wrangler dev
Publish:
wrangler publish
Create a token according to the wrangler action docs and set CF_API_TOKEN
in your repository config on GitHub.