-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
85 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Shorthand to access environment variables. | ||
export default import.meta.env | ||
|
||
export * from "./custom" | ||
export * from "./vite" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* This file contains all of vite's environment variables. | ||
* | ||
* https://vite.dev/guide/env-and-mode#env-variables | ||
*/ | ||
|
||
// Shorthand to access environment variables. | ||
const env = import.meta.env | ||
|
||
// The mode the app is running in. | ||
export const MODE = env.MODE | ||
|
||
// The base url the app is being served from. | ||
// This is determined by the base config option. | ||
export const BASE_URL = env.BASE_URL | ||
|
||
// Whether the app is running in production (running the dev server with | ||
// NODE_ENV='production' or running an app built with NODE_ENV='production'). | ||
export const PROD = env.PROD | ||
|
||
// Whether the app is running in development (always the opposite of | ||
// import.meta.env.PROD) | ||
export const DEV = env.DEV | ||
|
||
// Whether the app is running in the server. | ||
export const SSR = env.SSR |