Skip to content

Next 16#1403

Merged
jstcki merged 16 commits into
mainfrom
next-16
May 21, 2026
Merged

Next 16#1403
jstcki merged 16 commits into
mainfrom
next-16

Conversation

@jstcki

@jstcki jstcki commented May 19, 2026

Copy link
Copy Markdown
Contributor

Upgrade all the apps to Next.js v16 for compatibility with the latest next-sanity package (required by #1402)

Caveat: this breaks www comment links, but on Vercel only, where path matching is broken (the x-matched-path header matches on the top-level [...path] route instead of /dialog/[...path]). After confirming that this does not happen on Heroku, we accept this issue in order to move forward.

@vercel

vercel Bot commented May 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
www-republik-love Ready Ready Preview May 21, 2026 10:04am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
admin-republik-ch Skipped Skipped May 21, 2026 10:04am
publikator-republik-ch Skipped Skipped May 21, 2026 10:04am

Request Review

@vercel vercel Bot temporarily deployed to Preview – www-republik-love May 19, 2026 09:57 Inactive
@vercel vercel Bot temporarily deployed to Preview – admin-republik-ch May 19, 2026 09:57 Inactive
@vercel vercel Bot temporarily deployed to Preview – publikator-republik-ch May 19, 2026 09:57 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs May 19, 2026 12:56 Inactive
@vercel vercel Bot temporarily deployed to Preview – publikator-republik-ch May 19, 2026 12:56 Inactive
@vercel vercel Bot temporarily deployed to Preview – admin-republik-ch May 19, 2026 12:56 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs May 19, 2026 14:22 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-ovay63leesnex May 20, 2026 12:12 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-9i8cht5neoqkj May 20, 2026 12:20 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-tt3s8gbocz3mf May 20, 2026 12:42 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-tt3s8gbocz3mf May 20, 2026 13:16 Inactive
@vercel vercel Bot temporarily deployed to Preview – publikator-republik-ch May 20, 2026 13:41 Inactive
@vercel vercel Bot temporarily deployed to Preview – admin-republik-ch May 20, 2026 13:41 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs May 20, 2026 13:41 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-tt3s8gbocz3mf May 20, 2026 13:41 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-tt3s8gbocz3mf May 20, 2026 14:26 Inactive
@jstcki jstcki requested a review from annatraussnig May 21, 2026 09:00
@jstcki jstcki temporarily deployed to republik-next-16-tt3s8gbocz3mf May 21, 2026 09:01 Inactive
@jstcki jstcki marked this pull request as ready for review May 21, 2026 09:03
Comment thread apps/admin/next.config.js
Comment on lines -1 to -4
/* eslint-disable @typescript-eslint/no-var-requires */
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not using this anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next 16 has a built-in one (did you ever use this?)

Comment thread apps/admin/proxy.ts
import { NextRequest, NextResponse } from 'next/server'

export async function middleware(req: NextRequest) {
export async function proxy(req: NextRequest) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just WHY, next????

Comment on lines +5 to +12
const pathPrefix =
discussion.document?.meta?.template === 'article' ? '/dialog' : ''

const href = comment?.id
? `${pathPrefix}${discussion.path}?focus=${comment.id}`
: `${pathPrefix}${discussion.path}`

return href

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are all these dialog changes in this pr's scope?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes/no, they were attempts to fix the broken vercel behavior but also don't make things worse since we were getting deprecation warnings on using the 'url' package anyway.

Comment thread apps/www/package.json
"cloc": "find . -name '*.js' -not -path \"./node_modules*\" -not -path \"./.next*\" | xargs wc -l",
"lint": "next lint",
"analyze": "ANALYZE=true next build",
"analyze": "next experimental-analyze",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, this answers my first question

@vercel vercel Bot temporarily deployed to Preview – publikator-republik-ch May 21, 2026 09:36 Inactive
@vercel vercel Bot temporarily deployed to Preview – admin-republik-ch May 21, 2026 09:36 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs May 21, 2026 09:36 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-tt3s8gbocz3mf May 21, 2026 09:36 Inactive
@vercel vercel Bot temporarily deployed to Preview – admin-republik-ch May 21, 2026 09:59 Inactive
@vercel vercel Bot temporarily deployed to Preview – publikator-republik-ch May 21, 2026 09:59 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs May 21, 2026 09:59 Inactive
@jstcki jstcki temporarily deployed to republik-next-16-tt3s8gbocz3mf May 21, 2026 09:59 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants