diff --git a/.env b/.env index de91c8e..66744bf 100644 --- a/.env +++ b/.env @@ -3,5 +3,5 @@ SOLANG_BUILD_SERVER_BASE_URL=https://playground-next.test.aelf.dev SOLIDITY_ENABLED=false GA_TAG= GITHUB_API_KEY= -FAUCET_API_URL = -GOOGLE_CAPTCHA_SITEKEY = \ No newline at end of file +NEXT_PUBLIC_FAUCET_API_URL = +NEXT_PUBLIC_GOOGLE_CAPTCHA_SITEKEY = \ No newline at end of file diff --git a/lib/env.ts b/lib/env.ts index e336e7c..4ab473f 100644 --- a/lib/env.ts +++ b/lib/env.ts @@ -27,9 +27,9 @@ export function getSolidityEnabled() { } export function getFaucetUrl() { - return getEnv("FAUCET_API_URL") + return getEnv("NEXT_PUBLIC_FAUCET_API_URL") } export function getGoogleCaptchaSitekey() { - return getEnv("GOOGLE_CAPTCHA_SITEKEY"); + return getEnv("NEXT_PUBLIC_GOOGLE_CAPTCHA_SITEKEY"); } \ No newline at end of file