relativize build (embedded deployment)

master
Tomáš Mládek 2022-06-15 22:40:51 +02:00
parent 4d1c6b882d
commit b021ed90ec
3 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,7 @@
const lastId = await result.text();
const currentResult = await fetch("/grid.php");
const currentResult = await fetch("grid.php");
const current = await currentResult.json();
let choosing;
@ -64,7 +64,7 @@
}
async function random() {
const currentResult = await fetch("/grid.php");
const currentResult = await fetch("grid.php");
const current = await currentResult.json();
const audios = current.filter((link) => link.audio);

View File

@ -32,7 +32,7 @@
const firstScriptTag = document.getElementsByTagName("script")[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
const currentResult = await fetch("/grid.php");
const currentResult = await fetch("grid.php");
const current = await currentResult.json();
videoUrl = current.find((link) => link.id == videoId).url;
audioUrl = current.find((link) => link.id == audioId).url;

View File

@ -3,6 +3,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
// https://vitejs.dev/config/
export default defineConfig({
base: "",
plugins: [svelte()],
server: {
proxy: {