Skip to content

Commit

Permalink
fix github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Agilulfo1820 committed Nov 18, 2023
1 parent d466b6f commit a444612
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ VITE_GOOGLE_MAPS_KEY=
VITE_IPFS_API_KEY=
VITE_IPFS_SECRET_KEY=
VITE_IPFS_GATEWAY=
VITE_IS_PROD=
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@web3auth/openlogin-adapter": "4.6.0",
"axios": "^1.6.2",
"chakra-react-select": "^4.7.6",
"dotenv": "^16.3.1",
"framer-motion": "^10.16.5",
"hardhat": "^2.14.0",
"ipfs-http-client": "^60.0.1",
Expand Down Expand Up @@ -68,4 +69,4 @@
"vite": "^5.0.0",
"vitest": "^0.34.6"
}
}
}
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import tsconfigPaths from "vite-tsconfig-paths";
import 'dotenv/config';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
define: {
global: "globalThis",
},
base: process.env.VITE_IS_PROD === "true" ? "/cleanify/" : "/",
});
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4945,6 +4945,11 @@ dom-walk@^0.1.0:
resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.2.tgz#0c548bef048f4d1f2a97249002236060daa3fd84"
integrity sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==

dotenv@^16.3.1:
version "16.3.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e"
integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==

ecc-jsbn@~0.1.1:
version "0.1.2"
resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"
Expand Down

0 comments on commit a444612

Please sign in to comment.