You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am not sure how I can type the env var correctly
I followed this page to set up the env va,r but still receiving "Property MAIN_VITE_SOMETHING does not exist on type ."
// src/env.d.ts
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly MAIN_VITE_SOMETHING: string
// more env variables can be added here as needed
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am not sure how I can type the env var correctly
I followed this page to set up the env va,r but still receiving "Property MAIN_VITE_SOMETHING does not exist on type ."
and accessing it like this
thank you.
Beta Was this translation helpful? Give feedback.
All reactions