Skip to content

Commit

Permalink
fix base path
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlntv committed Sep 30, 2024
1 parent 22f3cd1 commit 92500b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
with:
node-version: 20

- name: Setup env variable
run: export BASE_PATH="/${{ github.repository_name }}/"

- name: Install Yarn
run: npm install -g yarn

Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { nodePolyfills } from "vite-plugin-node-polyfills"
import path from "path"

export default defineConfig({
base: "/cli-prototype/",
base: process.env.BASE_PATH || '/',
plugins: [
nodePolyfills({
include: ["path", "process"],
Expand Down

0 comments on commit 92500b1

Please sign in to comment.