From 1845d1329b3408404edef8cfa6d06e406f081bba Mon Sep 17 00:00:00 2001 From: sinsong Date: Wed, 28 Jun 2023 16:32:20 +0800 Subject: [PATCH] fix relative path issue --- frontend/vite.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 5984c6d..8aa6824 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -5,10 +5,11 @@ import replace from '@rollup/plugin-replace' import vue from '@vitejs/plugin-vue' export default defineConfig(({command}) => { return { + base: './', plugins: [ replace({ // production / development environment api base - __API_BASE__: command === 'build' ? JSON.stringify('https://bioarchlinux.org/') + __API_BASE__: command === 'build' ? JSON.stringify('https://bioarchlinux.org') : JSON.stringify(''), preventAssignment: true, }),