mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-12 23:35:59 +00:00
Add VUEPRESS_BASE as env and use it on the config.js.
This commit is contained in:
parent
98c60e6d77
commit
61681fbcbe
2
.github/workflows/vuepress-deploy.yml
vendored
2
.github/workflows/vuepress-deploy.yml
vendored
@ -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
|
||||
|
||||
@ -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 ?? '/',
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user