Working actix_files and vite configuration for serving static build

This commit is contained in:
Imbus 2023-10-17 03:04:42 +02:00
parent 118ee088b4
commit 89c949ac50
5 changed files with 76 additions and 11 deletions

View file

@ -4,6 +4,9 @@ import { qrcode } from 'vite-plugin-qrcode'
// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: '../server/public'
},
plugins: [react(), qrcode()],
server: {
port: 3000,