From 03ff99648b6f8d143d90297f3f0376f1ae467a36 Mon Sep 17 00:00:00 2001 From: Arthur Green Date: Mon, 30 Oct 2023 13:07:41 +0400 Subject: [PATCH] build: fix prod build for gh pages (#30) --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index df1198e..3f6e399 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react-swc'; // https://vitejs.dev/config/ export default defineConfig({ + base: process.env.NODE_ENV === 'production' ? '/auth-components/' : '/', plugins: [react()], resolve: { alias: [