Upgrade Next.js to version 16 and stabilize build configurations - #36
Open
clicktodev wants to merge 41 commits into
Open
Upgrade Next.js to version 16 and stabilize build configurations#36clicktodev wants to merge 41 commits into
clicktodev wants to merge 41 commits into
Conversation
…pdate magic-snowflakes to version 7.0.2
this will throw error if port is unavailable instead of auto selecting the next available port
…rade several packages
… turbopack for stability
Drop the changes that were not required by the upgrade, per review feedback: - Revert the easter-eggs/snowflakes refactor (app/easter-eggs.ts, app/components/EasterEggs.tsx, app/page.tsx). The magic-snowflakes 7 bump is kept; the original module-level implementation builds and prerenders fine on Next.js 16. - Revert the README formatting changes. Also set agentRules: false in next.config.ts so Next.js 16 stops regenerating AGENTS.md/CLAUDE.md in the repo root.
clicktodev
commented
Sep 1, 2026
| "bootstrap": "^5.3.3", | ||
| "dompurify": "^3.2.4", | ||
| "magic-snowflakes": "^6.3.0", | ||
| "magic-snowflakes": "^7.0.2", |
Contributor
Author
There was a problem hiding this comment.
this version fixes a build problem with nextjs 16
clicktodev
commented
Sep 1, 2026
| "dev": "next dev --webpack -p 3000", | ||
| "build": "next build --webpack", | ||
| "start": "next start -p 3000", | ||
| "lint": "eslint" |
Contributor
Author
There was a problem hiding this comment.
next16 no longer provides a lint command and instead eslint should be invoked directly
clicktodev
commented
Sep 1, 2026
| "start": "next start", | ||
| "lint": "next lint" | ||
| "dev": "next dev --webpack -p 3000", | ||
| "build": "next build --webpack", |
Contributor
Author
There was a problem hiding this comment.
next16 uses turbopack by default but explicitly setting webpack for stability. as well as forcing the port to be 3000 to stop next from using a different port when 3000 is not available which can break the tauri connection because tauri config looks for port 3000
clicktodev
commented
Sep 1, 2026
| @@ -0,0 +1,13 @@ | |||
| import type { NextConfig } from "next"; | |||
Contributor
Author
There was a problem hiding this comment.
next16 uses a ts config
clicktodev
commented
Sep 1, 2026
| @@ -0,0 +1,30 @@ | |||
| import { defineConfig, globalIgnores } from "eslint/config"; | |||
Contributor
Author
There was a problem hiding this comment.
next16 uses eslint9 and eslint flat config
clicktodev
commented
Sep 1, 2026
| { | ||
| "compilerOptions": { | ||
| "lib": ["dom", "dom.iterable", "esnext"], | ||
| "target": "ES2017", |
Contributor
Author
There was a problem hiding this comment.
copied settings from next16 project template
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
the changes in this pr have been ported from the latest next 16 project template