Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 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
5 changes: 5 additions & 0 deletions .changeset/yellow-eyes-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opennextjs/cloudflare": patch
---

feat: static assets incremental cache
1 change: 1 addition & 0 deletions examples/common/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const apps = [
"d1-tag-next",
"memory-queue",
"r2-incremental-cache",
"static-assets-incremental-cache",
// bugs
"gh-119",
"gh-219",
Expand Down
47 changes: 47 additions & 0 deletions examples/overrides/static-assets-incremental-cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
db1omMnCQneD37BT17NMt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"pages": {
"/_not-found/page": [
"static/chunks/webpack-d5aa5afde2f629ae.js",
"static/chunks/e22391a2-b8c8a1547e838062.js",
"static/chunks/917-92788986157b5f8e.js",
"static/chunks/main-app-505b9fbe1a4141d1.js",
"static/chunks/app/_not-found/page-44f8cc9f235908cf.js"
],
"/layout": [
"static/chunks/webpack-d5aa5afde2f629ae.js",
"static/chunks/e22391a2-b8c8a1547e838062.js",
"static/chunks/917-92788986157b5f8e.js",
"static/chunks/main-app-505b9fbe1a4141d1.js",
"static/css/58deb5567045f1fa.css",
"static/chunks/app/layout-b1fb271f626408c8.js"
],
"/page": [
"static/chunks/webpack-d5aa5afde2f629ae.js",
"static/chunks/e22391a2-b8c8a1547e838062.js",
"static/chunks/917-92788986157b5f8e.js",
"static/chunks/main-app-505b9fbe1a4141d1.js",
"static/css/fb7276bd132e5351.css",
"static/chunks/app/page-90810e9fe3af01ad.js"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"/favicon.ico/route": "/favicon.ico",
"/_not-found/page": "/_not-found",
"/page": "/"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"polyfillFiles": [
"static/chunks/polyfills-42372ed130431b0a.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/db1omMnCQneD37BT17NMt/_buildManifest.js",
"static/db1omMnCQneD37BT17NMt/_ssgManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack-d5aa5afde2f629ae.js",
"static/chunks/e22391a2-b8c8a1547e838062.js",
"static/chunks/917-92788986157b5f8e.js",
"static/chunks/main-app-505b9fbe1a4141d1.js"
],
"rootMainFilesTree": {},
"pages": {
"/_app": [
"static/chunks/webpack-d5aa5afde2f629ae.js",
"static/chunks/framework-30835c40a0cf5943.js",
"static/chunks/main-3c3d9ece4d55e7b9.js",
"static/chunks/pages/_app-753191e4500c23ab.js"
],
"/_error": [
"static/chunks/webpack-d5aa5afde2f629ae.js",
"static/chunks/framework-30835c40a0cf5943.js",
"static/chunks/main-3c3d9ece4d55e7b9.js",
"static/chunks/pages/_error-3c1a2f19ccee6096.js"
]
},
"ampFirstPages": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"encryption.key":"79V0BW6XRsgWFrHtk7lxuNfbD7dmHsfg9gOfxnEdH0Y=","encryption.expire_at":1745307771102}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"kind":"FETCH","data":{"headers":{},"body":"1744098187258","status":200,"url":""},"revalidate":31536000,"tags":["date"]}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"buildStage": "static-generation",
"buildOptions": {
"useBuildWorker": "true"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Next.js","version":"15.2.2"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": 1,
"hasExportPathMap": false,
"exportTrailingSlash": false,
"isNextImageImported": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"version": 1,
"images": {
"deviceSizes": [
640,
750,
828,
1080,
1200,
1920,
2048,
3840
],
"imageSizes": [
16,
32,
48,
64,
96,
128,
256,
384
],
"path": "/_next/image",
"loader": "default",
"loaderFile": "",
"domains": [],
"disableStaticImages": false,
"minimumCacheTTL": 60,
"formats": [
"image/webp"
],
"dangerouslyAllowSVG": false,
"contentSecurityPolicy": "script-src 'none'; frame-src 'none'; sandbox;",
"contentDispositionType": "attachment",
"remotePatterns": [],
"unoptimized": false,
"sizes": [
640,
750,
828,
1080,
1200,
1920,
2048,
3840,
16,
32,
48,
64,
96,
128,
256,
384
]
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "commonjs"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"version": 4,
"routes": {
"/favicon.ico": {
"initialHeaders": {
"cache-control": "public, max-age=0, must-revalidate",
"content-type": "image/x-icon",
"x-next-cache-tags": "_N_T_/layout,_N_T_/favicon.ico/layout,_N_T_/favicon.ico/route,_N_T_/favicon.ico"
},
"experimentalBypassFor": [
{
"type": "header",
"key": "Next-Action"
},
{
"type": "header",
"key": "content-type",
"value": "multipart/form-data;.*"
}
],
"initialRevalidateSeconds": false,
"srcRoute": "/favicon.ico",
"dataRoute": null,
"allowHeader": [
"host",
"x-matched-path",
"x-prerender-revalidate",
"x-prerender-revalidate-if-generated",
"x-next-revalidated-tags",
"x-next-revalidate-tag-token"
]
},
"/": {
"experimentalBypassFor": [
{
"type": "header",
"key": "Next-Action"
},
{
"type": "header",
"key": "content-type",
"value": "multipart/form-data;.*"
}
],
"initialRevalidateSeconds": false,
"srcRoute": "/",
"dataRoute": "/index.rsc",
"allowHeader": [
"host",
"x-matched-path",
"x-prerender-revalidate",
"x-prerender-revalidate-if-generated",
"x-next-revalidated-tags",
"x-next-revalidate-tag-token"
]
}
},
"dynamicRoutes": {},
"notFoundRoutes": [],
"preview": {
"previewModeId": "0ed2a1e7a2f25b13343c54d03126b89b",
"previewModeSigningKey": "19d42dd8ef0e0563ee01f236be123633f49b50c399a24fa67fef04790da7658c",
"previewModeEncryptionKey": "d65a0eb8f06c3d3b8aab257cb2e057abba71671fb4417d45e47e7a6e1d970b4b"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading