load environment variables at runtime instead on build
Some checks failed
delpoy / build-and-deploy (push) Failing after 16s
Some checks failed
delpoy / build-and-deploy (push) Failing after 16s
This commit is contained in:
parent
7403e4829f
commit
601fa98ee1
@ -1,8 +1,8 @@
|
|||||||
import { DataTypes, Sequelize } from 'sequelize';
|
import { DataTypes, Sequelize } from 'sequelize';
|
||||||
import { DATABASE_URI } from '$env/static/private';
|
import { env } from '$env/dynamic/private';
|
||||||
import { dev } from '$app/environment';
|
import { dev } from '$app/environment';
|
||||||
|
|
||||||
export const sequelize = new Sequelize(DATABASE_URI, {
|
export const sequelize = new Sequelize(env.DATABASE_URI, {
|
||||||
// only log sql queries in dev mode
|
// only log sql queries in dev mode
|
||||||
logging: dev ? console.log : false
|
logging: dev ? console.log : false
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { PUBLIC_START_DATE } from '$env/static/public';
|
import { env } from '$env/dynamic/public';
|
||||||
import Timer from '$lib/components/Countdown/Countdown.svelte';
|
import Timer from '$lib/components/Countdown/Countdown.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -8,5 +8,5 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="w-full flex justify-center items-center">
|
<div class="w-full flex justify-center items-center">
|
||||||
<Timer end={Date.parse(PUBLIC_START_DATE)} />
|
<Timer end={Date.parse(env.PUBLIC_START_DATE)} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { IconSolid } from 'svelte-heros-v2';
|
import { IconSolid } from 'svelte-heros-v2';
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
import { PUBLIC_START_DATE } from '$env/static/public';
|
import { env } from '$env/dynamic/public';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
@ -24,8 +24,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<b>Du hast dich erfolgreich für Craftattack 6 registriert</b>. Spielstart ist am {new Date(
|
<b>Du hast dich erfolgreich für Craftattack 6 registriert</b>. Spielstart ist am {new Date(
|
||||||
PUBLIC_START_DATE
|
env.PUBLIC_START_DATE
|
||||||
).toLocaleString('de-DE', startDayOptions)} um {new Date(PUBLIC_START_DATE).toLocaleString(
|
).toLocaleString('de-DE', startDayOptions)} um {new Date(env.PUBLIC_START_DATE).toLocaleString(
|
||||||
'de-DE',
|
'de-DE',
|
||||||
startTimeOptions
|
startTimeOptions
|
||||||
)} Uhr.
|
)} Uhr.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user