f90cc36ebd
Opens Swagger UI (/docs) in a new tab. Proxies /docs and /openapi.json in dev mode so the link works from the Vite dev server.
15 lines
351 B
TypeScript
15 lines
351 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [tailwindcss(), sveltekit()],
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:8420',
|
|
'/docs': 'http://localhost:8420',
|
|
'/openapi.json': 'http://localhost:8420'
|
|
}
|
|
}
|
|
});
|