~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
18 lines · 606 B Raw History
import { defineEnvVars } from '@sveltejs/kit/env';

export const variables = defineEnvVars({
	KNOTLESS_SERVE: {
		description: 'knotless-serve, which answers the XRPC queries the pages read.',
		schema: (value) => (value || 'http://127.0.0.1:2590').replace(/\/$/, '')
	},
	KNOTLESS_NOW: {
		description:
			'A moment the pages take as now, rather than the clock: the screenshots are taken at one.',
		schema: (value) => {
			if (!value) return null;
			const at = Date.parse(value);
			if (Number.isNaN(at)) throw new Error('KNOTLESS_NOW must be a time, as 2026-10-20T14:00:00Z');
			return at;
		}
	}
});