mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-26 17:56:13 -04:00
fix: allow hosting in subfolder via BASE_URL
This commit is contained in:
parent
4cbd7ac145
commit
54af194d92
2 changed files with 8 additions and 7 deletions
|
@ -55,7 +55,7 @@ export default defineConfig({
|
|||
description: 'Aggregated set of useful tools for developers.',
|
||||
display: 'standalone',
|
||||
lang: 'fr-FR',
|
||||
start_url: '/?utm_source=pwa&utm_medium=pwa',
|
||||
start_url: `${process.env.BASE_URL}/?utm_source=pwa&utm_medium=pwa`,
|
||||
orientation: 'any',
|
||||
theme_color: '#18a058',
|
||||
background_color: '#f1f5f9',
|
||||
|
@ -92,6 +92,7 @@ export default defineConfig({
|
|||
}),
|
||||
Unocss(),
|
||||
],
|
||||
base: process.env.BASE_URL,
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue