-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to env instead of import.env
- Loading branch information
1 parent
2b612cf
commit 40423a8
Showing
10 changed files
with
63 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ Dockerfile | |
.vscode | ||
|
||
# Tests | ||
src/tests | ||
src/setupTests.ts | ||
|
||
# Enviroment | ||
|
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
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,9 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
interface ImportMetaEnv { | ||
VITE_APP_PUBLIC_PIXABAY_BASE_URL: string; | ||
VITE_APP_PUBLIC_PIXABAY_KEY: string; | ||
NODE_VERSION: string; | ||
NODE_ENV: 'development' | 'production' | 'test'; | ||
// more env variables... | ||
} |
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/** | ||
* @type { string | undefined } | ||
*/ | ||
export const PixabayBaseURL: string | undefined = import.meta.env[ | ||
'VITE_APP_PUBLIC_PIXABAY_BASE_URL' | ||
]; | ||
export const PixabayBaseURL: string | undefined = | ||
process.env['VITE_APP_PUBLIC_PIXABAY_BASE_URL']; | ||
|
||
/** | ||
* @type { string | undefined } | ||
*/ | ||
export const PixabayKey: string | undefined = import.meta.env[ | ||
'VITE_APP_PUBLIC_PIXABAY_KEY' | ||
]; | ||
export const PixabayKey: string | undefined = | ||
process.env['VITE_APP_PUBLIC_PIXABAY_KEY']; |
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