Files
netfelix-audio-fix/vite.config.ts
Felix Förtsch 818b0d1396
All checks were successful
Build and Push Docker Image / build (push) Successful in 58s
add version badge in nav, apply path mappings at execution time, clear done/error jobs
- show version (from package.json) in nav bar, warn on frontend/server mismatch
- apply path_mappings to file access check and command string at execution time
  so existing scans with old jellyfin paths work without re-scanning
- add clear done/errors button on execute page
- bump version to 2026.03.04

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 17:22:14 +01:00

33 lines
731 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import tailwindcss from '@tailwindcss/vite';
import { TanStackRouterVite } from '@tanstack/router-plugin/vite';
import { resolve } from 'node:path';
import pkg from './package.json' with { type: 'json' };
export default defineConfig({
plugins: [
TanStackRouterVite({ target: 'react', autoCodeSplitting: true }),
react(),
tailwindcss(),
],
resolve: {
alias: {
'~': resolve(__dirname, 'src'),
},
},
server: {
port: 5173,
proxy: {
'/api': { target: 'http://localhost:3000', changeOrigin: true },
},
},
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
build: {
outDir: 'dist',
emptyOutDir: true,
},
});