caoxiemeihao / nuxt-electron

Integrate Nuxt and Electron
MIT License
169 stars 18 forks source link

How to use runtimeConfig #62

Closed derHodrig closed 5 months ago

derHodrig commented 6 months ago

Hello, i wonder if its possible to use the Nuxt RuntimeConfig with electron and how. The .Env gets installed path/to/installation/resource/.env but changing them does not do anything.

I need to set on the client a global variable, an ID eg.: "Client1"

The official electron docs arent helpful with runtime configurations. Do you know a way to make use of it?

derHodrig commented 5 months ago

when generating the app, there should be an index.html near the path/to/installation/resource/.././

In that index.html are all variables inside a script section.