Install packages
yarn add firebase-admin jsonwebtoken ms nanoid
# or
<script lang="ts"> | |
import type { PageData } from "./$types"; | |
export let data: PageData; | |
const { configuration } = data; | |
</script> | |
{#if configuration.displayEnvironment} | |
<div class="env-details"> |
import { env } from "$env/dynamic/private"; | |
import type { LayoutServerLoad } from "./$types"; | |
export const load: LayoutServerLoad = async () => { | |
return { | |
configuration: { | |
environment: env.ENVIRONMENT, | |
displayEnvironment: env.DISPLAY_ENVIRONMENT?.toLowerCase() === "true" | |
} | |
}; |