Skip to content

Next.js

After developing your application and configuring your routes to run on the edge runtime, you can use @cloudflare/next-on-pages to build your application for both Cloudflare Pages and zugriff.

  1. Configure your routes and API endpoints

    // page|endpoint.tsx|ts
    export const runtime = 'edge';
    export default function Page() {
    return (...);
    }
  2. Build your application with @cloudflare/next-on-pages

    Terminal window
    npx @cloudflare/next-on-pages
  3. Deploy and Forget.

    Terminal window
    zugriff deploy