Add base url
This commit is contained in:
parent
61409bc8b1
commit
fa7ef4e0ca
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { PUBLIC_VERSION } from '$env/static/public';
|
import { PUBLIC_VERSION, PUBLIC_ORIGIN } from '$env/static/public';
|
||||||
import supportedFormats from '$lib/common/supportedFormats.json';
|
import supportedFormats from '$lib/common/supportedFormats.json';
|
||||||
import Loader from '$lib/components/Loader.svelte';
|
import Loader from '$lib/components/Loader.svelte';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
if (metadata) searchParams.append('metadata', '1');
|
if (metadata) searchParams.append('metadata', '1');
|
||||||
|
|
||||||
href = `/download?${searchParams.toString()}`;
|
href = `${PUBLIC_ORIGIN}/download?${searchParams.toString()}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
|
@ -88,6 +88,7 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<a href='https://dl.emersa.it/test'> Test </a>
|
||||||
<div
|
<div
|
||||||
id="wrapper"
|
id="wrapper"
|
||||||
class="relative mx-auto rounded-lg bg-black p-6 text-[#00ff7f] shadow-lg sm:max-w-sm sm:border-4 sm:border-[#00ff7f] md:mt-10 md:max-w-md lg:max-w-lg 2xl:max-w-2xl"
|
class="relative mx-auto rounded-lg bg-black p-6 text-[#00ff7f] shadow-lg sm:max-w-sm sm:border-4 sm:border-[#00ff7f] md:mt-10 md:max-w-md lg:max-w-lg 2xl:max-w-2xl"
|
||||||
|
|
1
src/routes/test/+page.svelte
Normal file
1
src/routes/test/+page.svelte
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<h1>TEST</h1>
|
Loading…
Add table
Add a link
Reference in a new issue