Files
zen-kanji/client/vite.config.js
Rene Kievits 8552b44ffd
All checks were successful
Release Build / build-docker (push) Successful in 9s
Release Build / build-android-and-release (push) Successful in 2m18s
Change prod workflow and add automatic deployment
2025-12-24 16:30:27 +01:00

34 lines
694 B
JavaScript

import { fileURLToPath, URL } from 'node:url';
import { defineConfig, loadEnv } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueDevTools from 'vite-plugin-vue-devtools';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
return {
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
allowedHosts: [
'localhost',
],
host: true,
port: 5173,
strictPort: true,
hmr: {
host: 'localhost',
protocol: 'ws',
clientPort: 5173,
},
},
};
});