Add VUEPRESS_BASE as env and use it on the config.js.

This commit is contained in:
elweyn 2023-11-30 10:21:53 +01:00
parent 98c60e6d77
commit 61681fbcbe
2 changed files with 3 additions and 15 deletions

View File

@ -19,6 +19,8 @@ jobs:
- name: Build Vuepress Pages
run: npm install && npm run build
env:
VUEPRESS_BASE: '/ocelot.social/'
- name: Deploy Vuepress to Github Pages
uses: crazy-max/ghaction-github-pages@v4

View File

@ -7,19 +7,5 @@ export default defineUserConfig({
...meta,
theme,
plugins,
base: '/ocelot.social/',
locales:{
// The key is the path for the locale to be nested under.
// As a special case, the default locale can use '/' as its path.
'/en/': {
lang: 'en-US', // this will be set as the lang attribute on <html>
title: 'Ocelot.Social',
// description: ''
},
'/': {
lang: 'de-DE',
title: 'Ocelot.Social',
// description: ''
}
}
base: process.env.VUEPRESS_BASE ?? '/',
})