añadido proxy y autor

This commit is contained in:
2026-03-16 20:46:56 -03:00
parent e33faa687d
commit 5906cae45e
2 changed files with 14 additions and 19 deletions
+13 -3
View File
@@ -1,7 +1,17 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
// https://vite.dev/config/
export default defineConfig({
plugins: [svelte()],
})
server: {
proxy: {
"/url": {
target: "http://localhost:3000",
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/url/, ""),
},
},
},
});