Replies: 1 comment
-
Hi, the After moving the public folder to the top of your project you can also leverage the new experimental rewrites support in your // next.config.js
module.exports = {
experimental: {
async rewrites() {
return [
{
source: '/static/file.txt',
destination: '/folder/file.txt'
}
]
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Im trying to use vercel.json rewrites to direct urls to a specific file in my next js static folder with no luck.
the vercel.json file
the repo structure
Do i need to be using the dist folder as the destination? If so, i am not seeing the file.txt being outputted to the dist static folder?
Thanks in advanced
Beta Was this translation helpful? Give feedback.
All reactions