Use this repository as a starter template for building and deploying a Next.js + vinext app to Cloudflare Pages.
- Template repository:
uratmangun/vinext-template - Live template homepage: https://vinext-template.pages.dev
- Open: https://github.com/uratmangun/vinext-template
- Click Use this template
- Choose your owner/org, repo name, and visibility
- Create repository and clone it locally
gh repo create my-new-repo --template uratmangun/vinext-template --private --cloneFor a public repository:
gh repo create my-new-repo --template uratmangun/vinext-template --public --clonenpm install
npm run devOpen http://localhost:3000.
npm run dev:vinext
npm run build:vinextThis template is configured to export static output for Pages deployment.
npm run build
wrangler pages project create my-new-repo
wrangler pages deploy out --project-name my-new-repo --branch mainAfter deploy, your site will be available at:
https://my-new-repo.pages.dev
Set your GitHub repo homepage to your Pages domain:
gh repo edit --homepage https://my-new-repo.pages.dev