Skip to content

Commit

Permalink
change base path
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarcosfer committed Jun 30, 2022
1 parent 7d39418 commit 3d16cc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
import EventBus from '../event-bus.js';
import CustomToggle from './CustomToggle.vue';
console.log(import.meta.env.BASE_URL);
export default {
components: {CustomToggle},
data () {
Expand Down Expand Up @@ -131,7 +133,7 @@ export default {
let regex = this.youtubeURL.includes('youtu.be') ? /\/(?<id>\w{11})/ : /watch\?v=(?<id>(\w|\d|-|_){11})/;
let matches = regex.exec(this.youtubeURL);
let ytid = matches ? matches.groups.id : null;
if (ytid) this.streamingURL = `http://localhost:8000/stream/${ytid}`;
if (ytid) this.streamingURL = `${import.meta.env.BASE_URL}stream/${ytid}`;
},
fileURL (val, _) {
this.streamingURL = val;
Expand Down
1 change: 1 addition & 0 deletions examples/demos/discogs-autotagging/views/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
base: "/essentiajs-discogs/",
plugins: [vue()],
server: {
https: true
Expand Down

0 comments on commit 3d16cc3

Please sign in to comment.