vercel / vercel/flags

[Feedback] Interaction between precompute and `typedRoutes`

Open
#287 2 comments 0 reactions 1 assignee View on GitHub

@dferber90 is already working on this.

Since Feb 25, 2026.

feedback
Dominant language
TypeScript
Stars
622
Forks
87
Avg merge
1d 11h
Merged PRs (30d)
14

Description

I'm onboarding to use Next.js's typed routes implementation (https://nextjs.org/docs/app/api-reference/config/typescript#statically-typed-links) And all of these routes expect the true file-based route to be passed in, which unfortunately means [code] in every route. This is pretty unfortunate because now we're hard coupling our general routing schema with whatever page happens to have an a b test on it at a given point in time. Is there any way to fix this or should we just not even bother with precompute?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.