We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nitro v2.9.6 node v22.0.0 npm v10.5.1
Try to create a redirect or something for certain type of files
So this is what I have in my config:
routeRules: { '/somewhere.js': { redirect: '/somewhere-else', }, },
This works fine, when I visit "somewhere.js" I got redirected. But If I want it to make it global, like this:
routeRules: { '/**.js': { redirect: '/somewhere-else', }, },
It simply doesn't work. What I tried: /**.js, /*.js, **.js, *.js, **/**.js. I also tried to add \ and \\ in front of the dot, but same results.
/**.js
/*.js
**.js
*.js
**/**.js
\
\\
What kind of glob is used in the pattern? I didn't find in the docs information how to make custom routes for assets.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
nitro v2.9.6
node v22.0.0
npm v10.5.1
Reproduction
Try to create a redirect or something for certain type of files
Describe the bug
So this is what I have in my config:
This works fine, when I visit "somewhere.js" I got redirected. But If I want it to make it global, like this:
It simply doesn't work. What I tried:
/**.js
,/*.js
,**.js
,*.js
,**/**.js
. I also tried to add\
and\\
in front of the dot, but same results.What kind of glob is used in the pattern? I didn't find in the docs information how to make custom routes for assets.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: