diff --git a/examples/demos/discogs-autotagging/views/src/components/YTStream.vue b/examples/demos/discogs-autotagging/views/src/components/YTStream.vue index d9367bb..370720b 100644 --- a/examples/demos/discogs-autotagging/views/src/components/YTStream.vue +++ b/examples/demos/discogs-autotagging/views/src/components/YTStream.vue @@ -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 () { @@ -131,7 +133,7 @@ export default { let regex = this.youtubeURL.includes('youtu.be') ? /\/(?\w{11})/ : /watch\?v=(?(\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; diff --git a/examples/demos/discogs-autotagging/views/vite.config.js b/examples/demos/discogs-autotagging/views/vite.config.js index b464360..004132e 100644 --- a/examples/demos/discogs-autotagging/views/vite.config.js +++ b/examples/demos/discogs-autotagging/views/vite.config.js @@ -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