Skip to content

Commit d92078f

Browse files
committed
Fixed react
1 parent 56c3f8e commit d92078f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

react-base-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
7+
"dev": "vite --port 8081",
88
"build": "tsc -b && vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview"

react-base-app/vite.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import { defineConfig } from "vite"
55

66
// https://vite.dev/config/
77
export default defineConfig({
8+
server: {
9+
// 0.0.0.0 makes the dev server listen on all addresses,
10+
// or you could specify a particular IP or hostname.
11+
host: '0.0.0.0',
12+
port: 8081,
13+
allowedHosts: true
14+
},
815
plugins: [react(), tailwindcss()],
916
resolve: {
1017
alias: {

0 commit comments

Comments
 (0)