Skip to content

Commit

Permalink
🔧 Adjust github page base path
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jul 16, 2023
1 parent 6534e9e commit d09b95d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
run: npm install -g npm-run-all
- name: Build
run: npm run build
env:
GITHUB_PAGES_PATH: '/sd-webui-openpose-editor/'
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion src/components/OpenposeObjectPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<template #header>
<VisibleSwitch v-model:visible="object.visible" @update:visible="onVisibleChange" />
<GroupSwitch v-model:grouped="object.grouped" />
<LockSwitch v-model:locked="object.locked"/>
<LockSwitch v-model:locked="object.locked" />
<span :class="{ hidden: !object.visible }">{{ display_name }}</span>
<fire-outlined @click.stop="unjamInvalidKeypoints" v-if="object.hasInvalidKeypoints()"
title="Move all invalid keypoints to visible canvas for edit." class="unjam-button" />
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import packageJson from './package.json'

// https://vitejs.dev/config/
export default defineConfig({
base: process.env.NODE_ENV === 'production'
base: process.env.GITHUB_PAGES_PATH || (process.env.NODE_ENV === 'production'
? '/openpose_editor/'
: '/',
: '/'),
plugins: [
vue(),
vueJsx(),
Expand Down

0 comments on commit d09b95d

Please sign in to comment.