Amplify Gen2 - Next.js AssetPrefix feature not working with Nextjs version 14 #3965
Open
3 tasks done
Labels
feature-request
New feature or request
Before opening, please confirm:
Amplify Hosting feature
Deployments
Is your feature request related to a problem? Please describe:
Created new Nextjs App :
-> npx create-next-app@latest
Keeping static files under /assets in my project directory
updated next.config.js file as below :
host the application over Amplify Gen 2, it start throwing 404 errors for all the .css and .js files as show in screenshot below :
In browser, I am able to seeing 404 errors for files like below
http://localhost:3000/assets/_next/static/chunks/webpack-8e097dbXXXXXX63.js
Describe how you'd like this feature to work
If you inspect and go to Network, you should be able to see static files served from /assets without 404 errors
The text was updated successfully, but these errors were encountered: