From 6ab901913d5506fbe29e47335c7d99251b294b38 Mon Sep 17 00:00:00 2001 From: Brendan Irvine-Broque Date: Thu, 26 Sep 2024 11:07:49 +0100 Subject: [PATCH] Call out Cloudflare Workers <> Pages in Troubleshooting Some people may try to use `@opennextjs/cloudflare` to deploy to Cloudflare Pages, and we should explain compatibility and differences. --- pages/cloudflare/troubleshooting.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/cloudflare/troubleshooting.mdx b/pages/cloudflare/troubleshooting.mdx index a2ad091..1c06e1e 100644 --- a/pages/cloudflare/troubleshooting.mdx +++ b/pages/cloudflare/troubleshooting.mdx @@ -3,6 +3,14 @@ import { Callout } from 'nextra/components'; ## Troubleshooting +### Trying to deploy to Cloudflare Pages, instead of Cloudflare Workers? + +`@opennextjs/cloudflare` is specifically built for deploying Next.js apps to [Cloudflare Workers](https://developers.cloudflare.com/workers/) + +Cloudflare Workers now support the majority of functionality from Cloudflare Pages, and have features that are not yet supported by Cloudflare Pages. Refer to the [Compatibility Matrix](https://developers.cloudflare.com/workers/static-assets/compatibility-matrix/) in the Cloudflare Workers docs. + +If you need to deploy to Cloudflare Pages, you can use `@cloudflare/next-on-pages`, and follow the [Cloudflare Pages guides for deploying Next.js apps](https://developers.cloudflare.com/pages/framework-guides/nextjs/). + ### "Your Worker exceeded the size limit of 1 MiB" The Cloudflare Account you are deploying to is on the Workers Free plan, which [limits the size of each Worker to 1 MiB](https://developers.cloudflare.com/workers/platform/limits/#worker-size). When you subscribe to the Workers Paid plan, each Worker can be up to 10 MiB.