diff --git a/web/.env b/web/.env
deleted file mode 100644
index e7a95dc6..00000000
--- a/web/.env
+++ /dev/null
@@ -1,4 +0,0 @@
-# BRANDING
-
-VITE_LOGO_PATH=/favicon.png
-VITE_BACKGROUND_PATH=/background.jpg
\ No newline at end of file
diff --git a/web/.env.example b/web/.env.example
index fbef5b6f..f8b23678 100644
--- a/web/.env.example
+++ b/web/.env.example
@@ -1,4 +1,9 @@
# BRANDING
+VITE_FAVICON_PATH=/favicon.png
VITE_LOGO_PATH=/gpt-logo-white-transparent.svg
-VITE_BACKGROUND_PATH=/gpt-background.jpg
\ No newline at end of file
+VITE_BACKGROUND_PATH=/gpt-background.jpg
+
+# OTHER
+
+VITE_SYMBOL=ETH
\ No newline at end of file
diff --git a/web/.gitignore b/web/.gitignore
index c3a7567d..9dff5cd8 100644
--- a/web/.gitignore
+++ b/web/.gitignore
@@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
+
+.env
\ No newline at end of file
diff --git a/web/index.html b/web/index.html
index 6711bda5..11895ae4 100644
--- a/web/index.html
+++ b/web/index.html
@@ -1,8 +1,7 @@
-
+
-
Vite + Svelte
diff --git a/web/src/App.svelte b/web/src/App.svelte
index 625d5542..00c0cad5 100644
--- a/web/src/App.svelte
+++ b/web/src/App.svelte
@@ -2,6 +2,8 @@
import 'animate.css';
import 'bulma/css/bulma.css';
import Faucet from './Faucet.svelte';
+
+ const faviconPath = import.meta.env.VITE_FAVICON_PATH
@@ -9,6 +11,7 @@
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet"
/>
+
diff --git a/web/src/Faucet.svelte b/web/src/Faucet.svelte
index 8933c230..c3be4e22 100644
--- a/web/src/Faucet.svelte
+++ b/web/src/Faucet.svelte
@@ -4,12 +4,14 @@
import { CloudflareProvider } from '@ethersproject/providers';
import { setDefaults as setToast, toast } from 'bulma-toast';
+ const symbol = import.meta.env.VITE_SYMBOL
+
let input = null;
let faucetInfo = {
account: '0x0000000000000000000000000000000000000000',
network: 'testnet',
payout: 1,
- symbol: 'ETH',
+ symbol: symbol,
hcaptcha_sitekey: '',
};
diff --git a/web/src/env/env.ts b/web/src/env/env.ts
index 134351f6..a26d77cf 100644
--- a/web/src/env/env.ts
+++ b/web/src/env/env.ts
@@ -3,6 +3,8 @@
interface ImportMetaEnv {
readonly VITE_LOGO_PATH: string;
readonly VITE_BACKGROUND_PATH: string;
+ readonly VITE_FAVICON_PATH: string;
+ readonly VITE_SYMBOL: string;
}
interface ImportMeta {