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 lastId = await result.text();
|
||||||
|
|
||||||
const currentResult = await fetch("/grid.php");
|
const currentResult = await fetch("grid.php");
|
||||||
const current = await currentResult.json();
|
const current = await currentResult.json();
|
||||||
|
|
||||||
let choosing;
|
let choosing;
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
async function random() {
|
async function random() {
|
||||||
const currentResult = await fetch("/grid.php");
|
const currentResult = await fetch("grid.php");
|
||||||
const current = await currentResult.json();
|
const current = await currentResult.json();
|
||||||
|
|
||||||
const audios = current.filter((link) => link.audio);
|
const audios = current.filter((link) => link.audio);
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
const firstScriptTag = document.getElementsByTagName("script")[0];
|
const firstScriptTag = document.getElementsByTagName("script")[0];
|
||||||
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
||||||
|
|
||||||
const currentResult = await fetch("/grid.php");
|
const currentResult = await fetch("grid.php");
|
||||||
const current = await currentResult.json();
|
const current = await currentResult.json();
|
||||||
videoUrl = current.find((link) => link.id == videoId).url;
|
videoUrl = current.find((link) => link.id == videoId).url;
|
||||||
audioUrl = current.find((link) => link.id == audioId).url;
|
audioUrl = current.find((link) => link.id == audioId).url;
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: "",
|
||||||
plugins: [svelte()],
|
plugins: [svelte()],
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|
Loading…
Reference in a new issue