Skip to content

arkantrust/cf-next

Repository files navigation

Cloudflare vinext Example

Getting Started

First, install the Typescript Native Preview extension for VS Code, which provides support for tsgo, then activate the extension with the command TypeScript (Native Preview): Enable (Experimental)

Note

The tsgo command is used to check for type errors before building the application. It's substantially faster than tsc --noEmit but still in active development as Typescript 7.0.

Then, run the development server:

pnpm dev

Open http://localhost:3000 with your browser.

Build and Run

Build the app:

pnpm build

Start the production server locally:

pnpm start

Deploy to Cloudflare Workers

Deploy with vinext:

pnpm deploy

About

Template to deploy Next.js to Cloudflare Workers using vinext

Topics

Resources

Stars

Watchers

Forks

Contributors