Skip to content

Commit 3f85a90

Browse files
authored
chore: bump react and next in catalog (#666)
* bump catalog react and next version * lockfile * bump next to 15.1.0 * fix: after is stable now * fix: cloudfront not cache api/after/ssg * lint
1 parent c6e18bf commit 3f85a90

File tree

5 files changed

+117
-132
lines changed

5 files changed

+117
-132
lines changed

examples/app-router/app/api/after/revalidate/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { revalidateTag } from "next/cache";
2-
import { NextResponse, unstable_after as after } from "next/server";
2+
import { NextResponse, after } from "next/server";
33

44
export function POST() {
55
after(

examples/app-router/middleware.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export function middleware(request: NextRequest) {
4747
// It is so that cloudfront doesn't cache the response
4848
if (
4949
path.startsWith("/revalidate-tag") ||
50-
path.startsWith("/revalidate-path")
50+
path.startsWith("/revalidate-path") ||
51+
path.startsWith("/api/after/ssg")
5152
) {
5253
responseHeaders.set(
5354
"cache-control",

examples/app-router/next.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const nextConfig: NextConfig = {
1717
},
1818
],
1919
},
20-
experimental: {
21-
after: true,
22-
},
2320
redirects: async () => {
2421
return [
2522
{

0 commit comments

Comments
 (0)