martin/demo/frontend/vite.config.ts
Birk Skyum a8f7c30eef
Simplify demo - remove nginx (#692)
This uses the webserver built into vitejs instead of configuring an
entirely new nginx server with an additional docker image.
2023-05-31 00:56:11 +02:00

19 lines
388 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import mkcert from 'vite-plugin-mkcert'
import viteTsConfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [
react(),
viteTsConfigPaths({
root: './',
}),
mkcert(),
],
build: {
target: 'esnext',
},
server: { https: false, host: true, port: 8080 },
})