Skip to content

Write immutable.json for static files#25

Draft
mischnic wants to merge 4 commits intomainfrom
mischnic/immutable
Draft

Write immutable.json for static files#25
mischnic wants to merge 4 commits intomainfrom
mischnic/immutable

Conversation

@mischnic
Copy link
Collaborator

@mischnic mischnic commented Feb 16, 2026

Depends on vercel/next.js#90045

Closes PACK-6802

Generate a .vercel/output/immutable.json file looking like this, mapping each client-side Turbopack-emitted chunk to its full 128bit hash:

{
  "static/_next/static/chunks/1227d17fd87ada6e.js": "1227d17fd87ada6e2e5735ab242d36e1",
  "static/_next/static/chunks/2e5735ab242d36e1.js": "2e5735ab242d36e1367415e237be3ade",
  "static/_next/static/chunks/367415e237be3ade.js": "367415e237be3adee849cb2159a24faf",
  "static/_next/static/chunks/turbopack-8843b62868ca6d60.js": "8843b62868ca6d60367415e237be3ade",
  "static/_next/static/chunks/turbopack-e849cb2159a24faf.js": "e849cb2159a24fafe849cb2159a24faf",
  "static/_next/static/media/vercel.c81d49bc.png": "c81d49bcb18fa799e849cb2159a24faf"
}

@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2026

⚠️ No Changeset found

Latest commit: 0918542

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 16, 2026

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

Project Deployment Actions Updated (UTC)
adapter-vercel-adapter Ready Ready Preview, Comment Mar 11, 2026 9:35am

Request Review

mischnic added a commit to vercel/next.js that referenced this pull request Feb 27, 2026
Disabled for now

Expose a hash for each file that should be treated as immutable

For nextjs/adapter-vercel#25

Part of PACK-6802
mischnic added a commit to vercel/next.js that referenced this pull request Feb 27, 2026
This allows specifying a different deployment id for static immutable assets

- [x] rename `getImmutableAssetToken` to `getAssetToken` (because it can be non-immutable as well)
- [x] disable for webpack

Closes PACK-6534

For nextjs/adapter-vercel#25

Part of PACK-6802
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.

1 participant