Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit 95fe813

Browse files
committed
Just added some space.
1 parent f0fb1fa commit 95fe813

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/routes/calendar/[slug]/+page.server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ export async function load({ params, locals, cookies }) {
2323
return redirect(301, `/calendar/${params.slug}/login`);
2424
}
2525
}
26-
27-
const credentials = btoa(`${process.env.APP_ID}:${process.env.APP_SECRET}`);
26+
2827
try {
2928
const data = await fetch(`${process.env.VITE_PB_URL}/events`, {
30-
headers: { 'Authorization': `Basic ${credentials}` }
29+
headers: { 'Authorization': `Basic ${process.env.CREDENTIALS}` }
3130
});
3231

3332
if (!data.ok) {

0 commit comments

Comments
 (0)