File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ PGLITE_DATA_DIR= #../pgLite/ if selecting a directory --- or memory:// if
9
9
10
10
# Eliza Port Config
11
11
SERVER_PORT = 3000
12
+ VITE_SERVER_PORT = ${ SERVER_PORT }
12
13
13
14
# Supabase Configuration
14
15
SUPABASE_URL =
Original file line number Diff line number Diff line change 1
1
import { type UUID , type Character } from "@elizaos/core" ;
2
2
3
- const BASE_URL = " http://localhost:3000" ;
3
+ const BASE_URL = ` http://localhost:${ import . meta . env . VITE_SERVER_PORT } ` ;
4
4
5
5
const fetcher = async ( {
6
6
url,
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from "vite" ;
2
2
import react from "@vitejs/plugin-react-swc" ;
3
3
import viteCompression from "vite-plugin-compression" ;
4
+ import path from "path" ;
4
5
5
6
// https://vite.dev/config/
6
7
export default defineConfig ( {
@@ -13,6 +14,7 @@ export default defineConfig({
13
14
} ) ,
14
15
] ,
15
16
clearScreen : false ,
17
+ envDir : path . resolve ( __dirname , ".." ) ,
16
18
build : {
17
19
outDir : "dist" ,
18
20
minify : true ,
You can’t perform that action at this time.
0 commit comments