Merge pull request #22 from Ocelot-Social-Community/21-switch-case-for-vuepress-base

feat(workflow): add VUEPRESS_BASE as env and use it on the config.js
This commit is contained in:
Hannes Heine 2023-11-30 10:45:42 +01:00 committed by GitHub
commit dedbd1feeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ?? '/',
})