Files
url-short/front/vite.config.js
fede ae64072be4
All checks were successful
Build Urlshort / publish (push) Successful in 1m45s
Update vite.config.js
2026-03-21 17:53:28 -03:00

19 lines
406 B
JavaScript

import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
// https://vite.dev/config/
export default defineConfig({
base: "./",
plugins: [svelte()],
server: {
proxy: {
"/short/": {
target: "http://localhost:8080",
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/short/, ""),
},
},
},
});