Joni
Proxy websockets `ws://nuxtserver/ws-api/xyz` → `ws://mysecretdomain/xyz`
So I've managed to find a solution, but there is definitely a nuxt/nitro bug on the very first connection, the first connection gets error 204 every other connection gets proxied
2 replies
Nuxt prepare set dotenv path
Well it does something with env vars, since im using them in my
nuxt.config.ts
, bc of that I get the error Cannot read properties of undefined (reading 'length') in line 32:114
My env vars are in a folder above the actual nuxt project tho, that's why I added --dotenv ../.env
to all of my package.json
scripts15 replies
Nuxt prepare set dotenv path
It does also fail with the
--dotenv ../.env
flag, removing the "postinstall": "nuxt prepare --dotenv ../.env"
line in package.json
lets npm install
work without issues - so the actual problem is, that the prepare command doesn’t support the dotenv flag15 replies
Nuxt prepare set dotenv path
idk exactly what it does, but when I do
npm install
, the npm run postinstall
(fromthe package.json; nuxt prepare
) gets called and the npm install
errors. If that happens while starting my docker container and setting everything up, the frontend might fail15 replies
How to navigate inside pinia store?
Solution: https://pinia.vuejs.org/core-concepts/plugins.html#adding-new-external-properties
plugin file looks like this:
13 replies