From 4dd8473f70aa89e62dc08a867b8b60314b535c78 Mon Sep 17 00:00:00 2001 From: enes Date: Thu, 17 Oct 2024 13:47:55 +0200 Subject: [PATCH] build: remove vite base_url used for testing --- vite.config.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 9b1364b..5a7a691 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,15 +1,8 @@ import react from '@vitejs/plugin-react' -import { defineConfig, loadEnv } from 'vite' +import { defineConfig } from 'vite' import tsconfigPaths from 'vite-tsconfig-paths' // https://vitejs.dev/config/ -export default defineConfig(({ mode }) => { - // Load env file based - // Set the third parameter to '' to load all env regardless of the `VITE_` prefix. - const env = loadEnv(mode, process.cwd(), '') - return { - // vite config - plugins: [react(), tsconfigPaths()], - ...(env.VITE_BASE_URL ? { base: env.VITE_BASE_URL } : {}) - } +export default defineConfig({ + plugins: [react(), tsconfigPaths()] })