thasmo
Vue Router warning for valid server route
I've a server route configured at
/server/routes/images/[...path].get.ts
but when called in the frontend, I get these warnings in the terminal:
WARN [Vue Router warn]: No match found for location with path "/images/properties/photos/01JR5W6KCRXZ21CYE4HGTKEEV0"To be clear, the called URL is a working URL and returns the image correctly in the frontend. Is this to be expected? Is there a way to disable the warning for this specific route?
5 replies
How to set custom HTTP headers for prerender requests at build time?
When pages get prerendered at build time, I need to set custom HTTP Headers for the prerender requests. More specifically, I am using
nuxt-security
to deny access to the application via basic auth which also denies access at build time for the prerendering requests.
How can I ensure that prerendering requests (at build time) can access the application which is secured by basic auth? Is there a way to set auth headers when prerendering?9 replies