update readme and vite port

This commit is contained in:
Henry
2023-11-27 12:24:11 +00:00
parent 8ce32179ee
commit 4e3f219e2d
11 changed files with 41 additions and 34 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
import dotenv from 'dotenv'
dotenv.config()
export default defineConfig({
plugins: [react()],
@@ -15,6 +18,6 @@ export default defineConfig({
},
server: {
open: true,
port: 8080
port: process.env.VITE_PORT ?? 8080
}
})