Skip to content

Commit 8611e56

Browse files
author
janrozic1
committed
Configure website to run on a specific port and host
Update vite.config.ts to set the server host to '0.0.0.0' and the port to 5000. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dc672fdb-19d2-4d5f-bae1-94760b303a1d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 4199e6cc-ea1b-4ae0-a39a-563e8e0a14f2 Replit-Helium-Checkpoint-Created: true
1 parent e298458 commit 8611e56

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.replit

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
modules = ["vue-node-20", "nodejs-20", "web"]
2+
[agent]
3+
expertMode = true
4+
5+
[nix]
6+
channel = "stable-25_05"
7+
8+
[workflows]
9+
runButton = "Project"
10+
11+
[[workflows.workflow]]
12+
name = "Project"
13+
mode = "parallel"
14+
author = "agent"
15+
16+
[[workflows.workflow.tasks]]
17+
task = "workflow.run"
18+
args = "Dev Server"
19+
20+
[[workflows.workflow]]
21+
name = "Dev Server"
22+
author = "agent"
23+
24+
[[workflows.workflow.tasks]]
25+
task = "shell.exec"
26+
args = "npm run dev"
27+
waitForPort = 5000
28+
29+
[workflows.workflow.metadata]
30+
outputType = "webview"
31+
32+
[[ports]]
33+
localPort = 5000
34+
externalPort = 80

site/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export default {
1919
},
2020
},
2121
server: {
22-
host: true,
22+
host: '0.0.0.0',
23+
port: 5000,
2324
},
2425
plugins: [
2526
vueJsx({

0 commit comments

Comments
 (0)