Files
url-short/front/vite.config.js
fede 68ce52f7c8 feat: terminada funcionalidad
actualmente funciona en dev falta cocinar deploy
2026-03-17 11:18:22 -03:00

18 lines
392 B
JavaScript

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