add option to set base path
All checks were successful
delpoy / build-and-deploy (push) Successful in 34s
All checks were successful
delpoy / build-and-deploy (push) Successful in 34s
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
import Select from '$lib/components/Input/Select.svelte';
|
||||
import Input from '$lib/components/Input/Input.svelte';
|
||||
import { createEventDispatcher, onMount } from 'svelte';
|
||||
import { env } from '$env/dynamic/public';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
@ -37,7 +38,7 @@
|
||||
async function sendRegister() {
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
registerRequest = new Promise(async (resolve, reject) => {
|
||||
const response = await fetch('/register', {
|
||||
const response = await fetch(`${env.PUBLIC_BASE_PATH}/register`, {
|
||||
method: 'POST',
|
||||
body: new FormData(document.forms[0])
|
||||
});
|
||||
@ -171,7 +172,8 @@
|
||||
bind:inputElement={rulesInput}
|
||||
/>
|
||||
<label for="rules">
|
||||
Ich bin mit den <a class="link" href="/rules">Regeln</a> einverstanden und achte sie
|
||||
Ich bin mit den <a class="link" href="{env.PUBLIC_BASE_PATH}/rules">Regeln</a> einverstanden
|
||||
und achte sie
|
||||
<span class="text-red-700">*</span>
|
||||
<br />
|
||||
<p class="text-[.75rem]">
|
||||
|
Reference in New Issue
Block a user