Do chunks names change?

Hi guys.

I’m building a project where I want to deploy statically generated chunks on S3 using assetPrefix (to keep versions, so the clients don’t get a 404 on the file when we redeploy the docker image).

Question 1: do chunk names actually change between builds? Do I need to store the chunk somewhere else?

We also use next-intl and get the locale messages from another API.
So every time the translations change I’m going to run a call to revalidate this call.
This should invalidate/trigger rebuild of the chunks.

Question 2: Is it correct? Do I need to redeploy the chunks if Q1 is true?

next.js 15 canary

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.