unwind/unwind-ui/vite.config.ts
ducklet 9acd534706 make more aspects of API & UI hosting configurable
This is necessary to create proper dev & production builds of the app.
2021-08-05 19:18:51 +02:00

13 lines
320 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
base: process.env.BASE_URL || "/",
define: {
"process.env.API_URL": JSON.stringify(
process.env.API_URL || "http://localhost:8000/api/",
),
},
plugins: [vue()],
})