Skip to content

Commit

Permalink
fix repo base
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsc0301 committed Sep 13, 2023
1 parent 26d5730 commit 34d8ac7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { defineConfig } from 'vite'

const repo = process.env.GITHUB_REPOSITORY;

export default defineConfig({
base: process.env.GITHUB_REPOSITORY?.split('/')[1] || '/'
base: repo ? '/'+repo.split('/')[1] : '/'
});

0 comments on commit 34d8ac7

Please sign in to comment.