mirror of
https://github.com/BioArchLinux/Rosa.git
synced 2025-03-10 12:02:43 +00:00
fix relative path issue
This commit is contained in:
parent
2b8ab19104
commit
1845d1329b
1 changed files with 2 additions and 1 deletions
|
@ -5,10 +5,11 @@ import replace from '@rollup/plugin-replace'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
|
|
||||||
export default defineConfig(({command}) => { return {
|
export default defineConfig(({command}) => { return {
|
||||||
|
base: './',
|
||||||
plugins: [
|
plugins: [
|
||||||
replace({
|
replace({
|
||||||
// production / development environment api base
|
// 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(''),
|
: JSON.stringify(''),
|
||||||
preventAssignment: true,
|
preventAssignment: true,
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue