caoxiemeihao / nuxt-electron

Integrate Nuxt and Electron
MIT License
191 stars 21 forks source link

How to use runtimeConfig #62

Closed derHodrig closed 10 months ago

derHodrig commented 11 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 10 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.