Skip to content

Commit

Permalink
Update vite.config.ts
Browse files Browse the repository at this point in the history
Updated deployment port.
  • Loading branch information
nhkhai committed May 26, 2024
1 parent b7c44a7 commit 39374e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@ export default defineConfig({
// base: "/my-portfolio-website/",
base: process.env.VITE_BASE_PATH || "/", // Use environment variable or default to '/'.
plugins: [react()],
preview: {
port: 8080,
strictPort: true,
},
server: {
port: 8080,
strictPort: true,
host: true,
origin: "https://0.0.0.0:8080",
},
});

0 comments on commit 39374e4

Please sign in to comment.