File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import react from "@vitejs/plugin-react-swc" ;
2
2
import { defineConfig } from "vite" ;
3
3
4
- // Log the base path for debugging
5
4
console . log ( `Building DeepGit with BASE_PATH="${ process . env . BASE_PATH || "/deepgit" } "` ) ;
6
5
7
6
export default defineConfig ( {
8
7
preview : {
9
- allowedHosts : [ ' deepgit-1.onrender.com' ] ,
8
+ allowedHosts : [ " deepgit-1.onrender.com" ] ,
10
9
} ,
11
10
base : process . env . BASE_PATH || "/deepgit" ,
12
11
plugins : [ react ( ) ] ,
13
12
server : {
14
- host : "0.0.0.0" , // Allows external access (required for Render)
15
- port : process . env . PORT ? parseInt ( process . env . PORT ) : 5173 , // Use Render's assigned port or fallback to 5173
16
- strictPort : true , // Prevents Vite from using a different port if the default is unavailable
13
+ host : "0.0.0.0" ,
14
+ port : process . env . PORT ? parseInt ( process . env . PORT ) : 5173 ,
15
+ strictPort : true ,
16
+ allowedHosts : [ "deepgit-1.onrender.com" ]
17
17
} ,
18
18
} ) ;
You can’t perform that action at this time.
0 commit comments