You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
342 B
JavaScript

2 years ago
import preactPlugin from '@preact/preset-vite'
import { defineConfig } from 'vite'
export default defineConfig({
root: 'frontend/',
build: {
outDir: '../out/frontend/',
},
server: {
port: 3000,
proxy: {
'/api': 'http://localhost:4000/',
},
},
plugins: [preactPlugin()],
})