What is an Atmosphere account?
By logging in you agree to the terms, privacy policy and community guidelines.
Don't have an account? Create one
photography-focused photo sharing platform
1 2 3 4 5 6 7
import { redirect } from "@sveltejs/kit"; import type { PageServerLoad } from "./$types"; export const load: PageServerLoad = async ({ parent }) => { const { viewer } = await parent(); if (!viewer) throw redirect(302, "/"); };