mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-18 14:21:32 +03:00
27 lines
578 B
JavaScript
27 lines
578 B
JavaScript
import dns from 'node:dns'
|
|
|
|
import dotenv from 'dotenv'
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
dotenv.config()
|
|
|
|
dns.setDefaultResultOrder('verbatim')
|
|
|
|
// Map necessary Leon's env vars as Vite only expose VITE_*
|
|
process.env.VITE_LEON_NODE_ENV = process.env.LEON_NODE_ENV
|
|
process.env.VITE_LEON_HOST = process.env.LEON_HOST
|
|
process.env.VITE_LEON_PORT = process.env.LEON_PORT
|
|
|
|
export default defineConfig({
|
|
root: 'app/src',
|
|
build: {
|
|
outDir: '../dist',
|
|
emptyOutDir: true
|
|
},
|
|
server: {
|
|
port: 3000
|
|
},
|
|
plugins: [react()]
|
|
})
|