dosyourself
dosyourself
Explore posts from servers
NNuxt
Created by dosyourself on 6/25/2024 in #❓・help
Prevent developers from using secrets in client-side code
Ah, interesting. Is using the runtimeConfig required at runtime or can I just use process.env as long as those env_vars are set in my server host at runtime (and in .env during dev)? Or are there any security concerns with doing this with nuxt?
5 replies
NNuxt
Created by Thr0nSK on 6/24/2024 in #❓・help
`import.meta` meta-property is only allowed when the --module option is ...
Add this to your tsconfig: "compilerOptions": { "module": "es2022" }
4 replies