Domme
Domme
NNuxt
Created by Domme on 9/26/2024 in #❓・help
Why do I get a hydration error, and how to fix this?
I also tried to rename the file to setup-state.server.ts because I only want to send the request initially when sending the files to the client but this also does not work
3 replies
NNuxt
Created by Domme on 9/26/2024 in #❓・help
Why do I get a hydration error, and how to fix this?
The fetched value is always the same JSON
3 replies
NNuxt
Created by Domme on 9/18/2024 in #❓・help
Request env variables on application startup from backend
Ah, but you don't can't overwrite the runtimeconfig in your plugin?
19 replies
NNuxt
Created by Domme on 9/18/2024 in #❓・help
Request env variables on application startup from backend
Well, that's kind of what I am trying to do. I don't care whether it is actually dynamic set or when the frontend starts. But I want to fetch the config from the Java backend. So my frontend only uses public variables
19 replies
NNuxt
Created by Domme on 9/18/2024 in #❓・help
Request env variables on application startup from backend
And you do not use the runtime config at all right? Like you don't set it dynamically?
19 replies
NNuxt
Created by Domme on 9/18/2024 in #❓・help
Request env variables on application startup from backend
Could you show me a code example real quick where you read an env variable you fetch via the plugin?
19 replies
NNuxt
Created by Domme on 9/18/2024 in #❓・help
Request env variables on application startup from backend
Yeah currently I have the env variables in the frontend which are required. But some are duplicated because they are also needed in the backend. Therefore I now want to request them from the backend. And now I'm basically asking what's the best way to request them. Is there any specific listener/hook I can use or do I just request them once in my app.vue Would be nice if it even is possible no load them once in a while with the nuxt/vue server so I don't even have to make a dedicated request from the frontend
19 replies