Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
fix: corrected changelog file path for build
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Apr 29, 2019
1 parent c251104 commit ad00d4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/Changelog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ export default {
},
methods: {
async fetchChangelog() {
const response = await fetch('/changelog.html');
const path = process.env.NODE_ENV === 'development'
? '/changelog.html'
: `${process.env.BASE_URL}/changelog.html`;
const response = await fetch(path);
const contents = await response.text();
this.changelog = contents;
Expand Down

0 comments on commit ad00d4b

Please sign in to comment.