From 68b32f189734c39992a2aa04407e0402ca407973 Mon Sep 17 00:00:00 2001 From: John B Date: Sun, 17 Dec 2023 16:04:36 +0100 Subject: [PATCH] typo --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index ad38b5c..13f4f40 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,4 @@ +import { ProxyOptions } from "vite"; import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; @@ -7,7 +8,7 @@ const proxy: { [l: string]: ProxyOptions } = { target: "http://localhost:3002", changeOrigin: true, secure: false, - rewrite: (path: string) => path.replace(/^\/api\/, ""), + rewrite: (path: string) => path.replace(/^\/api/, ""), }, };