From 354c876ffabff03d3c13dbaaf3b962c2e039f29a Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Thu, 29 Jun 2023 10:53:15 +0100 Subject: [PATCH] add comment about getStaticPaths empty paths array in supported.md --- packages/next-on-pages/docs/supported.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/next-on-pages/docs/supported.md b/packages/next-on-pages/docs/supported.md index fb7f697dd..a7d97f168 100644 --- a/packages/next-on-pages/docs/supported.md +++ b/packages/next-on-pages/docs/supported.md @@ -176,6 +176,8 @@ export async function getStaticPaths() { } ``` +> Note that the `paths` array cannot be empty as that causes Next.js to ignore the provided `fallback` value, so make sure that at build time at least one entry is present in the array + #### Revalidating Data and `next/cache` Revalidation and `next/cache` are not supported on Cloudflare Pages. This is used by the default `fetch` cache, which forms part of the incremental cache for revalidating data inside the App Router. Revalidating tags and data for an entire path also uses `next/cache`.