Skip to content

Commit

Permalink
add comment about getStaticPaths empty paths array in supported.md (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz authored Jun 29, 2023
1 parent e9baede commit 49a0656
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/supported.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 49a0656

Please sign in to comment.