Cant expose env to renderer #1210
Unanswered
preAGIcoder
asked this question in
Q&A
Replies: 2 comments
-
idk why but now i cant access the env's in preload and main too. i can only see the default env when i log it.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@cawa-93 can you please give me a gist how can i possibly fix it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I am not able to expose env to renderer process. I have prefixed my env with
VITE_
added types for it inenv.d.ts
file insideImportMetaEnv
interface. env variables are accessible from main and renderer process but not from renderer process.Beta Was this translation helpful? Give feedback.
All reactions