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
7 changes: 1 addition & 6 deletions examples/e2e/experimental/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@ const nextConfig: NextConfig = {
/* config options here */
cleanDistDir: true,
output: "standalone",
eslint: {
ignoreDuringBuilds: true,
},
cacheComponents: true,
typescript: {
// Ignore type errors during build for now, we'll need to figure this out later
ignoreBuildErrors: true,
},
experimental: {
cacheComponents: true,
},
};

export default nextConfig;
2 changes: 1 addition & 1 deletion examples/e2e/experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@opennextjs/cloudflare": "workspace:*",
"next": "15.4.2-canary.29",
"next": "16.0.2-canary.13",
"react": "catalog:e2e",
"react-dom": "catalog:e2e"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e/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: 1 addition & 1 deletion examples/e2e/experimental/src/app/ppr/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DynamicComponent } from "@/components/dynamic";
import { StaticComponent } from "@/components/static";
import { Suspense } from "react";

export const experimental_ppr = true;
// export const experimental_ppr = true;

export default function PPRPage() {
return (
Expand Down
6 changes: 3 additions & 3 deletions examples/e2e/experimental/src/components/cached.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unstable_cacheLife, unstable_cacheTag } from "next/cache";
import { cacheLife, cacheTag } from "next/cache";

export async function FullyCachedComponent() {
"use cache";
Expand All @@ -11,7 +11,7 @@ export async function FullyCachedComponent() {

export async function FullyCachedComponentWithTag() {
"use cache";
unstable_cacheTag("fullyTagged");
cacheTag("fullyTagged");
return (
<div>
<p data-testid="fully-cached-with-tag">{Date.now()}</p>
Expand All @@ -21,7 +21,7 @@ export async function FullyCachedComponentWithTag() {

export async function ISRComponent() {
"use cache";
unstable_cacheLife({
cacheLife({
stale: 1,
revalidate: 5,
});
Expand Down
4 changes: 2 additions & 2 deletions examples/e2e/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,6 @@
"@/*": ["./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