1
This commit is contained in:
18
admin/vite.config.ts
Normal file
18
admin/vite.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '')
|
||||
return {
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
port: Number(env.VITE_PORT || 5173),
|
||||
host: true
|
||||
},
|
||||
preview: {
|
||||
port: Number(env.VITE_PREVIEW_PORT || 5174)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user