Skip to content

@cloudflare/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jul 17:16
· 19 commits to main since this release
502b4cd

Minor Changes

  • 4bd4c19: Use request.cf.regionCode for x-vercel-ip-country-region for keeping behavior consistent with documentation

  • 78accfd: Add support for custom worker entrypoints.

    Example:

    import nextOnPagesHandler from '@cloudflare/next-on-pages/fetch-handler';
    
    export default {
      async fetch(request, env, ctx) {
        // do something before running the next-on-pages handler
    
        const response = await nextOnPagesHandler.fetch(request, env, ctx);
    
        // do something after running the next-on-pages handler
    
        return response;
      },
    } as ExportedHandler<{ ASSETS: Fetcher }>;

Patch Changes

  • 2527917: Account for the Vercel CLI no longer generating prerender configs for dynamic ISR functions.