Files
James Anderson 350865c466 fix(create-vinext-app): generate next env on first run (#2768)
* fix(create-vinext-app): generate next env on first run

* fix(types): keep next env renderer internal
2026-07-31 01:00:56 +01:00
..
2026-02-24 09:29:39 -06:00
2026-02-24 09:29:39 -06:00
2026-02-24 09:29:39 -06:00

API Routes with REST

A Next.js API routes example running on Cloudflare Workers via vinext. Demonstrates how to build a REST API using the Pages Router pages/api/ convention.

How to use

  1. Install dependencies:
pnpm install
  1. Start the dev server:
pnpm dev
  1. Build for production:
pnpm build

Deploy to Cloudflare

# Build the application
pnpm build

# Deploy to Cloudflare Workers
npx wrangler deploy