From 49a065656ce013459799533b2a49c48b20221d0b Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Thu, 29 Jun 2023 14:26:20 +0100 Subject: [PATCH] add comment about getStaticPaths empty paths array in supported.md (#348) --- docs/supported.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/supported.md b/docs/supported.md index fb7f697dd..a7d97f168 100644 --- a/docs/supported.md +++ b/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`.