native aot in container

This commit is contained in:
Vinzenz Schroeter 2024-04-10 22:03:36 +02:00
parent 0ca6a91a7e
commit 85ae3e302c
11 changed files with 128 additions and 61 deletions

View file

@ -1,12 +1,15 @@
import {defineConfig} from 'vite';
import {ConfigEnv, defineConfig} from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
export default defineConfig(() => {
const isContainer = process.env.CONTAINERMODE;
return {
plugins: [react()],
build: {
outDir: '../TanksServer/client',
emptyOutDir: true
}
build: {
outDir: isContainer ? undefined : '../TanksServer/client',
emptyOutDir: true
}
};
});