mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-13 07:46:08 +00:00
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:
commit
dedbd1feeb
2
.github/workflows/vuepress-deploy.yml
vendored
2
.github/workflows/vuepress-deploy.yml
vendored
@ -19,6 +19,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Vuepress Pages
|
- name: Build Vuepress Pages
|
||||||
run: npm install && npm run build
|
run: npm install && npm run build
|
||||||
|
env:
|
||||||
|
VUEPRESS_BASE: '/ocelot.social/'
|
||||||
|
|
||||||
- name: Deploy Vuepress to Github Pages
|
- name: Deploy Vuepress to Github Pages
|
||||||
uses: crazy-max/ghaction-github-pages@v4
|
uses: crazy-max/ghaction-github-pages@v4
|
||||||
|
|||||||
@ -7,19 +7,5 @@ export default defineUserConfig({
|
|||||||
...meta,
|
...meta,
|
||||||
theme,
|
theme,
|
||||||
plugins,
|
plugins,
|
||||||
base: '/ocelot.social/',
|
base: process.env.VUEPRESS_BASE ?? '/',
|
||||||
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: ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user