Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions examples/experimental/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ const nextConfig: NextConfig = {
/* config options here */
cleanDistDir: true,
output: "standalone",
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
ppr: "incremental",
nodeMiddleware: true,
dynamicIO: true,
},
cacheComponents: true,
};

export default nextConfig;
2 changes: 1 addition & 1 deletion examples/experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"clean": "rm -rf .turbo node_modules .next .open-next"
},
"dependencies": {
"next": "15.4.0-canary.14",
"next": "catalog:",
"react": "catalog:",
"react-dom": "catalog:"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/experimental/src/app/api/revalidate/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { revalidateTag } from "next/cache";

export function GET() {
revalidateTag("fullyTagged");
revalidateTag("fullyTagged", { expire: 0 });
return new Response("DONE");
}
2 changes: 0 additions & 2 deletions examples/experimental/src/app/ppr/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { DynamicComponent } from "@/components/dynamic";
import { StaticComponent } from "@/components/static";
import { Suspense } from "react";

export const experimental_ppr = true;

export default function PPRPage() {
return (
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import crypto from "node:crypto";
import { type NextRequest, NextResponse } from "next/server";

export default function middleware(request: NextRequest) {
export default function proxy(request: NextRequest) {
if (request.nextUrl.pathname === "/api/hello") {
return NextResponse.json({
name: "World",
Expand All @@ -21,7 +21,3 @@ export default function middleware(request: NextRequest) {
},
});
}

export const config = {
runtime: "nodejs",
};
10 changes: 8 additions & 2 deletions examples/experimental/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
Expand All @@ -22,6 +22,12 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"]
}
Loading
Loading