Jesús Serrano
BaseUrl configuration problem using proxy
@kapa.ai
We have removed the cdnURL and now we have baseURL = “/apipre/front/mejorac/mejorac” and buildAssetsDir=“/apipre/front/mejorac/_nuxt/”. This makes the pages and js files load correctly but we are like at the start, it works with vpn and without vpn it only works without javascript. Without vpn I noticed that without js it doesn't run a json file and with js it does. So, this makes me think that this json only runs on client. In theory it is the following file: sspa.juntadeandalucia.es/agenciadecalidadsanitaria/apipre/front/mejorac/apipre/front/mejorac/_nuxt/builds/meta/ee5f85b3-ac5a-4f57-9440-9bc65590839c. json The problem is that Nuxt loads this json without “/agenciadecalidadsanitaria” in front and that's why it gives error and I think that's why it duplicates the url (https://www.sspa.juntadeandalucia.es/apipre/front/mejorac/apipre/front/mejorac/_nuxt/builds/meta/ee5f85b3-ac5a-4f57-9440-9bc65590839c.json). Now we don't know how to put that “/agenciadecalidadsanitaria” in front so that it doesn't crash.
Is that JSON requested by Nuxt or is it something we request in our app? Although our test app only gets a page with a template.
34 replies
BaseUrl configuration problem using proxy
@kapa.ai Adding the following finds me the page correctly, but the problem is that the JS does not execute well. I tried changing the cndURL to https://proxypre.acsa.junta-andalucia.es/apipre/front/mejorac/ and it runs the js fine, but outside the VPN it doesn't recognize the page, because it needs the one below.
app: {
baseURL: '/apipre/front/mejorac',
buildAssetsDir: '/_nuxt/',
cdnURL: '/healthqualityagency'
},
34 replies
BaseUrl configuration problem using proxy
@kapa.ai Trying in a middleware by taking out by console in process.server it shows me and in process.client it does not show. Could it be that the error is giving it before entering the client? How could I test it?
34 replies
BaseUrl configuration problem using proxy
@kapa.ai Why if I delete the duplicate from the path I get the following error before pressing enter or anything else?
[Vue Router warns:] No match found for location with path “/index”.
Having the configuration with the router: {
base: '/agenciadecalidadsanitaria/apipre/front/mejorac/'
}
34 replies
BaseUrl configuration problem using proxy
@kapa.ai the url it generates is like the following taking into account the proxy added and the nuxt configuration above. This url should be the correct one https://www.sspa.juntadeandalucia.es/agenciadecalidadsanitaria/apipre/front/mejorac/version and this is the url that https://www.sspa.juntadeandalucia.es/apipre/front/mejorac/agenciadecalidadsanitaria/apipre/front/mejorac/version generates.
34 replies