Skip to content

Commit 1532d93

Browse files
Fixed using wrongly named env variables which weren't used
1 parent f4dbdc4 commit 1532d93

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: .github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: npm install
2929

3030
- name: build
31-
run: echo "GITHUB_PAGES=1" > .env.local; npx vue-cli-service build
31+
run: echo "VUE_APP_GITHUB_PAGES=1" > .env.local; npx vue-cli-service build
3232

3333
- name: move to docs
3434
run: rm -rf docs && mv dist docs

Diff for: src/router/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const routes = [
5555
];
5656

5757
const router = new VueRouter({
58-
mode: process.env.GITHUB_PAGES ? "hash" : "history",
58+
mode: process.env.VUE_APP_GITHUB_PAGES ? "hash" : "history",
5959
base: process.env.BASE_URL,
6060
routes
6161
});

Diff for: vue.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
transpileDependencies: ["vuetify"],
33
publicPath:
4-
process.env.NODE_ENV === "production" && process.env.GITHUB_PAGES
4+
process.env.NODE_ENV === "production" && process.env.VUE_APP_GITHUB_PAGES
55
? "/CorpusHarvesterWeb/"
66
: "/"
77
};

0 commit comments

Comments
 (0)