Skip to content

Commit

Permalink
Fix vite build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexort committed Sep 4, 2024
1 parent fab865a commit 8891e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"ethers": "^6.13.2",
"libswarm": "^0.5.8",
"mantaray-js": "^1.0.3",
"clsx": "^2.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.0"
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default defineConfig(({mode}) => {
const env = loadEnv(mode, process.cwd(), '');
return {
define: {
'process.env.DEVCON6_SESSSIONS_HASH': JSON.stringify(env.DEVCON6_SESSSIONS_HASH) ?? '',
'process.env.BEE_API_URL': JSON.stringify(env.BEE_API_URL) ?? 'http://localhost:1633/'
'process.env.DEVCON6_SESSSIONS_HASH': JSON.stringify(env.DEVCON6_SESSSIONS_HASH) ?? JSON.stringify(''),
'process.env.BEE_API_URL': JSON.stringify(env.BEE_API_URL) ?? JSON.stringify('http://localhost:1633/')
},
plugins: [react()],
base: '/DevconAgora/',
Expand Down

0 comments on commit 8891e2b

Please sign in to comment.