release path
This commit is contained in:
parent
c00d389ef3
commit
f60a209ac5
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -26,6 +26,8 @@ jobs:
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
env:
|
||||
BUILD_TYPE: release
|
||||
|
||||
- name: Create release zip
|
||||
run: |
|
||||
|
||||
@ -4,5 +4,5 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
base: process.env.NODE_ENV === 'production' ? '/lapd-face-search/' : '/',
|
||||
base: process.env.BUILD_TYPE === 'release' ? './' : (process.env.NODE_ENV === 'production' ? '/lapd-face-search/' : '/'),
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user