Look at the nuxt 3 documentation to learn more.
Make sure to install the dependencies:
npm installStart the development server on http://localhost:3000
npm run devBuild the application for production:
npm run buildLocally preview production build:
npm run previewCheckout 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/publicInstall wrangler and login to your Cloudflare account:
npm i @cloudflare/wrangler -g
wrangler loginGenerate website with cloudflare preset:
NITRO_PRESET=cloudflare yarn buildYou can preview locally:
wrangler devPublish:
wrangler publishCreate a token according to the wrangler action docs and set CF_API_TOKEN in your repository config on GitHub.