my website at ewancroft.uk
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(atproto): use SvelteKit env import for DID endpoint

Replace process.env with $env/static/public import for PUBLIC_ATPROTO_DID.
Fixes potential 500 errors on the well-known endpoint.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

+2 -1
+2 -1
src/routes/.well-known/atproto-did/+server.ts
··· 1 1 import type { RequestHandler } from './$types'; 2 + import { PUBLIC_ATPROTO_DID } from '$env/static/public'; 2 3 3 4 export const prerender = false; 4 5 5 6 export const GET: RequestHandler = ({ setHeaders }) => { 6 7 setHeaders({ 'Content-Type': 'text/plain' }); 7 - return new Response(process.env.PUBLIC_ATPROTO_DID ?? ''); 8 + return new Response(PUBLIC_ATPROTO_DID ?? ''); 8 9 };