relativize build (embedded deployment)
This commit is contained in:
parent
4d1c6b882d
commit
b021ed90ec
3 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -3,6 +3,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: "",
|
||||
plugins: [svelte()],
|
||||
server: {
|
||||
proxy: {
|
||||
|
|
Loading…
Reference in a new issue