Skip to content

Commit 41f4acf

Browse files
committed
am i stupid
1 parent a1e3e65 commit 41f4acf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install dependencies
3939
run: npm ci
4040
- name: Setup .env.production
41-
run: echo "VITE_GITHUB_REPO_NAME=SkapEdit" >> .env.production
41+
run: echo "VITE_GITHUB_REPO_NAME=${{ github.event.repository.name }}" >> .env.production
4242
- name: Build
4343
run: npm run build
4444
- name: Setup Pages

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from "node:path";
55
// https://vitejs.dev/config/
66
export default defineConfig(({mode}) => {
77

8-
const env = loadEnv(mode, 'environment');
8+
const env = loadEnv(mode, false);
99
console.log("env:", env);
1010
console.log("GITHUB:", env.VITE_IS_GITHUB);
1111

0 commit comments

Comments
 (0)