We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e3e65 commit 41f4acfCopy full SHA for 41f4acf
.github/workflows/build.yml
@@ -38,7 +38,7 @@ jobs:
38
- name: Install dependencies
39
run: npm ci
40
- name: Setup .env.production
41
- run: echo "VITE_GITHUB_REPO_NAME=SkapEdit" >> .env.production
+ run: echo "VITE_GITHUB_REPO_NAME=${{ github.event.repository.name }}" >> .env.production
42
- name: Build
43
run: npm run build
44
- name: Setup Pages
vite.config.ts
@@ -5,7 +5,7 @@ import path from "node:path";
5
// https://vitejs.dev/config/
6
export default defineConfig(({mode}) => {
7
8
- const env = loadEnv(mode, 'environment');
+ const env = loadEnv(mode, false);
9
console.log("env:", env);
10
console.log("GITHUB:", env.VITE_IS_GITHUB);
11
0 commit comments