wugge
wugge
NNuxt
Created by wugge on 9/24/2024 in #❓・help
RouteRules Exception for route path
Hi! I have a routeRule for my API like that:
'/api/**': 'http://my-api/**'
'/api/**': 'http://my-api/**'
Now I'm experiencing the issue that some nuxt modules use the path
/api/_nuxt_[module]
/api/_nuxt_[module]
for themselves How can I add an exception to the API route for a certain route?
3 replies
NNuxt
Created by wugge on 6/17/2024 in #❓・help
SVG Loading different in Dev and Production
Hi! I'm using vite-svg-loader as a nuxt plugin to load my SVG's dynamically. Like this:
import desk from '@/assets/icons/desk.svg?url'
import desk from '@/assets/icons/desk.svg?url'
When this code runs with
npm run dev
npm run dev
everything is fine, after
npm run build
npm run build
however instead of getting the URL to the SVG I'm getting the SVG code itself returned, but I would need the URL like in dev mode. Could the SSR be causing this? Anybody has an idea or an advice how to implement this?
9 replies