feat: add well-know path for msid associated

This commit is contained in:
Bart van der Braak 2024-02-22 00:23:24 +01:00
parent d16c60babd
commit b1d8df5ebe
2 changed files with 12 additions and 0 deletions

View file

@ -1,2 +1,4 @@
SERVER_PB="http://localhost:8090"
PUBLIC_CLIENT_PB="http://127.0.0.1:8090"
PUBLIC_MSID_ASSOCIATION="{}"
PUBLIC_PLAUSIBLE_DOMAIN="plausible.example.com"

View file

@ -0,0 +1,10 @@
import { MSID_ASSOCIATION } from '$env/static/private';
export async function GET() {
return new Response(JSON.stringify(MSID_ASSOCIATION), {
headers: {
'Cache-Control': `public, max-age=${86400}`,
'Content-Type': 'application/json'
}
});
}