setup env pro render

This commit is contained in:
authentik Default Admin 2025-06-12 12:00:00 +01:00
parent 6f2ce912ed
commit 103ed32fbc

View file

@ -1,11 +1,25 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
preview: {
server: {
//dev env
host: true,
port: process.env.PORT || 4173,
allowedHosts: ['myfit-2lu2.onrender.com']
port: 5173
},
preview: {
// setup prod env render
host: true,
port: 10000,
allowedHosts: [
'myfit.health',
'myfit-2lu2.onrender.com'
]
},
build: {
outDir: 'dist',
emptyOutDir: true
}
})
});