Wicker
Incorrect values calling getClientBoundingRect() on mounted
Hello people hope you're having a good day
Basically i have a page and a component, in that component i want to get the position of 4 items and use them in the page to place an svg and connect these items
In the component i have a defineModel to store the values like this
And on the main page
However at first i noticed that my elements were misplaced however after a hot reload (adding a console.log) they had a different position
From what i read it's because onMounted stores the values before DOM has finished loading so i tried using nextTIck like this on the onMounted hook but still no difference
onUpdated works however it causes an infinite loop so no bueno.. So how do i fix this issue ?
1 replies
Nuxt proxy console log url
Hello, i''m using nuxt-proxy module to proxy some urls from my main app
https://www.npmjs.com/package/nuxt-proxy
I did some changes to the nuxt config app.baseURL i also have i18n installed and changed the stragety of it from "prefix" to "no_prefix"
( Example of changes below )
The old pages folder was
And now
So basically the request comes from the same url
localhost:3000/apple/thirteen/en/auth/secretStuffHere but for some reason i seem to get back an html response from my service instead of a json ( saddly i dont have access to the logs of the service which would make my life easier)
These are my proxy options
Is it possible to have any kind of console.log inside of the proxy to see which url is being proxied to ? I tried this as mentioned in the docs but it seems to have no effect
https://github.com/chimurai/http-proxy-middleware?tab=readme-ov-file#http-proxy-events
1 replies
In ssr and target = static is it possible to catch a 404 error before it happens?
Hello people, for context i have a static generate sites with ssr enabled also i have an error.vue in the root of the project, Sadly the site is uploaded using nginx and i cannot change the config, if a user navigates to a link which doesnt exists for example /derp, could it be possible to catch the error before it happens and redirect him to the /error page instead of nginx error page?
At the moment i tried using hooks in the config
Which makes the prerenderer fail ( Error: [500] )
Tried using the error handler plugin
And ye... Is it possible to do something like that?
1 replies