Skip to content

Commit

Permalink
Fix bug by hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
sopa301 committed Dec 23, 2024
1 parent 88df14b commit 2df7266
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import stylelint from 'vite-plugin-stylelint';
import path from 'path';

// Extract the repository name from the GITHUB_REPOSITORY environment variable
const repoName = process.env.GITHUB_REPOSITORY
? `/${process.env.GITHUB_REPOSITORY.split('/').pop()}/`
: '/default-repo/'; // Fallback if GITHUB_REPOSITORY is not set
// const repoName = process.env.GITHUB_REPOSITORY
// ? `/${process.env.GITHUB_REPOSITORY.split('/').pop()}/`
// : '/'; // Fallback if GITHUB_REPOSITORY is not set

const repoName = '/publish-RepoSense/';

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 2df7266

Please sign in to comment.