-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[next] Ensure all prerenders have matching .action output (#11719)
This ensures we create `.action` outputs for all prerendered paths that point to a streaming serverless function when enabled so that our routing rules have the expected destination available. --------- Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
- Loading branch information
Showing
112 changed files
with
312 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@vercel/next': patch | ||
--- | ||
|
||
Ensure all prerenders have matching .action output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
...erimental-streaming/app/edge/rsc/static/generate-static-params/no-fallback/[slug]/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { revalidatePath } from 'next/cache'; | ||
|
||
export default async function Page() { | ||
async function serverAction() { | ||
'use server'; | ||
await new Promise(resolve => setTimeout(resolve, 1000)); | ||
revalidatePath('/dynamic'); | ||
} | ||
|
||
return ( | ||
<form action={serverAction}> | ||
<button>Submit</button> | ||
</form> | ||
); | ||
} | ||
|
||
export const dynamicParams = false; | ||
|
||
export function generateStaticParams() { | ||
return [{ slug: 'pre-generated' }]; | ||
} |
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
...s-experimental-streaming/app/rsc/static/generate-static-params/no-fallback/[slug]/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { revalidatePath } from 'next/cache'; | ||
|
||
export default async function Page() { | ||
async function serverAction() { | ||
'use server'; | ||
await new Promise(resolve => setTimeout(resolve, 1000)); | ||
revalidatePath('/dynamic'); | ||
} | ||
|
||
return ( | ||
<form action={serverAction}> | ||
<button>Submit</button> | ||
</form> | ||
); | ||
} | ||
|
||
export const dynamicParams = false; | ||
|
||
export function generateStaticParams() { | ||
return [{ slug: 'pre-generated' }]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-catchall-index-handling/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-catchall-pages/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-dynamic-404/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-incremental-ppr/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-middleware/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-root-catch-all/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-segment-options/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-app-dir-trailing-slash/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/next/test/fixtures/00-base-path-index-revalidate/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"next": "canary", | ||
"react": "19.0.0-rc-f994737d14-20240522", | ||
"react-dom": "19.0.0-rc-f994737d14-20240522" | ||
"react": "19.0.0-rc.0", | ||
"react-dom": "19.0.0-rc.0" | ||
}, | ||
"ignoreNextjsUpdates": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.