mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 04:41:46 +03:00
a8f7c30eef
This uses the webserver built into vitejs instead of configuring an entirely new nginx server with an additional docker image.
19 lines
388 B
TypeScript
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 },
|
|
})
|