We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56c3f8e commit d92078fCopy full SHA for d92078f
react-base-app/package.json
@@ -4,7 +4,7 @@
4
"version": "0.0.0",
5
"type": "module",
6
"scripts": {
7
- "dev": "vite",
+ "dev": "vite --port 8081",
8
"build": "tsc -b && vite build",
9
"lint": "eslint .",
10
"preview": "vite preview"
react-base-app/vite.config.ts
@@ -5,6 +5,13 @@ import { defineConfig } from "vite"
// https://vite.dev/config/
export default defineConfig({
+ server: {
+ // 0.0.0.0 makes the dev server listen on all addresses,
+ // or you could specify a particular IP or hostname.
11
+ host: '0.0.0.0',
12
+ port: 8081,
13
+ allowedHosts: true
14
+ },
15
plugins: [react(), tailwindcss()],
16
resolve: {
17
alias: {
0 commit comments