rsnext/test/e2e/app-dir/revalidate-dynamic
Zack Tanner 8d4f4fcd38
revalidate APIs should make route handlers dynamic (#58466)
### What?
Using `revalidateTag` or `revalidatePath` in a route handler will not
currently opt the handler into dynamic behavior. This means that if you
use these APIs and don't opt into dynamic behavior by some other means,
the revalidation call won't do anything as the route handler will be
served statically.

### Why?
During static generation, we do not currently indicate that usage of
these APIs should opt into dynamic usage.

### How?
This updates `revalidateTag` to throw a `DynamicUsageError` (similar to
our other scenarios, such as search params bailout, headers/cookies, or
fetch + revalidate/no-store)

Closes NEXT-1712
2023-11-16 11:57:55 +01:00
..
app revalidate APIs should make route handlers dynamic (#58466) 2023-11-16 11:57:55 +01:00
revalidate-dynamic.test.ts revalidate APIs should make route handlers dynamic (#58466) 2023-11-16 11:57:55 +01:00