Pages

05 December, 2023

Changing prefix build for static asset in Nextjs

I just wonder if we can configure name of prefix asset in nextjs 13


when we running build of next application it will produce new folder into project with name "out" folder and there will be several folder inside there.


When we using from next/image it will build into /_next/static/media/myimage.svg


Is it possible to us, maybe in config.next.json to change all image path to something else like /_next/static/asset/myimage.svg or /_next/images/myimage.svg


I just wonder if we can change build prefix in nextjs


Thank you

No comments:

Post a Comment

Thanks