-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
8713a49
commit 051c63d
Showing
8 changed files
with
20 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import { Env } from '~/types'; | ||
|
||
export const getEnv = (): Env => { | ||
const NEXT_PUBLIC_RPC_URL = process.env.NEXT_PUBLIC_RPC_URL; | ||
const NEXT_PUBLIC_PROJECT_ID = process.env.NEXT_PUBLIC_PROJECT_ID; | ||
const NEXT_PUBLIC_ALCHEMY_KEY = process.env.NEXT_PUBLIC_ALCHEMY_KEY; | ||
const env: Env = { | ||
RPC_URL: process.env.NEXT_PUBLIC_RPC_URL as string, | ||
PROJECT_ID: process.env.NEXT_PUBLIC_PROJECT_ID as string, | ||
ALCHEMY_KEY: process.env.NEXT_PUBLIC_ALCHEMY_KEY as string, | ||
}; | ||
|
||
return { | ||
RPC_URL: NEXT_PUBLIC_RPC_URL as string, | ||
PROJECT_ID: NEXT_PUBLIC_PROJECT_ID as string, | ||
ALCHEMY_KEY: NEXT_PUBLIC_ALCHEMY_KEY as string, | ||
}; | ||
export const getEnv = (): Env => { | ||
return env; | ||
}; |
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