Car-Management/car_management/vite.config.ts

19 lines
472 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
proxy: {
// Alle Anfragen, die mit /api/ beginnen, werden an dein API weitergeleitet
'/api': {
target: 'https://cardb.rp-s.de',
changeOrigin: true,
secure: false, // falls du ein SelfSignedCert nutzt
ws: true
}
}
}
});