Skip to content

Commit

Permalink
Upgrade Nextjs 15 (#7588)
Browse files Browse the repository at this point in the history
* Upgrade e2e test project to Nextjs 15

* Update next.config experimental.serverActions ot be an object

* Remove deprecated option swcMinify from next.config

* Add 'force-static' to nextjs static GET route handler to generate a valid expected firebase.json

* Add _not-found route to expected effective firebase.json and remove hasStaticAppNotFoundComponent check

* Add hasStaticAppNotFoundComponent verification back

* Add hasStaticAppNotFoundComponent verification back

* Skipping partial html files generated due to enabling ppr in Nextjs

* Detect partial html files in build and add them to reasonsForBackend.
- Move common logic to utils functions

* Add tests cases for new utils functions

* Check if file .html exists before trying to read it.

* Remove warning if file does not exist

* Changelog

* Promise.all test isPartialHTML

* Refactor to use .meta files for PPR

* Changelog

* Upgrade NextJS deploy test to 15.0.0-canary.202 and add new headers for revalidation times

* Bump nextjs to 15.0.0

* Fix identation on package.json for tests

* Update supportedRange constant and skip sharp as dep when next gte 15.0.0

* Changelog

* Fix case for PPR message

* Revert skip sharp on next 15

* Update changelog

* Update image optimization comment.
  • Loading branch information
chalosalvador authored Oct 31, 2024
1 parent 3150262 commit 906a37a
Show file tree
Hide file tree
Showing 7 changed files with 2,834 additions and 2,570 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added support for Next.js 15. (#7588)
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const dynamic = 'force-static'

export async function GET() {
return new Response(JSON.stringify([1, 2, 3]), {
status: 200,
Expand Down
3 changes: 1 addition & 2 deletions scripts/webframeworks-deploy-tests/nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
serverActions: true,
serverActions: {},
},
basePath: "/base",
i18n: {
Expand Down
Loading

0 comments on commit 906a37a

Please sign in to comment.