Change prod workflow and add automatic deployment
All checks were successful
Release Build / build-docker (push) Successful in 9s
Release Build / build-android-and-release (push) Successful in 2m18s

This commit is contained in:
Rene Kievits
2025-12-24 07:51:51 +01:00
parent c140bb8292
commit 8552b44ffd
14 changed files with 250 additions and 82 deletions

View File

@@ -1,29 +1,33 @@
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import { defineConfig, loadEnv } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueDevTools from 'vite-plugin-vue-devtools';
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
allowedHosts: [
'zenkanji.crylia.de',
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
return {
plugins: [
vue(),
vueDevTools(),
],
host: true,
port: 5173,
strictPort: true,
hmr: {
host: 'zenkanji.crylia.de',
protocol: 'wss',
clientPort: 443,
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,
},
},
};
});