fix: random auth errors on prod

This commit is contained in:
2026-04-24 23:30:32 +02:00
parent b3c4bddd38
commit 4b61dc0314
3 changed files with 4 additions and 5 deletions

View File

@@ -192,7 +192,6 @@ const createAuthConfig = (baseURL = env.ORIGIN) =>
type: 'boolean',
required: true,
input: false,
fieldName: 'statistics_opt_out',
defaultValue: false,
},
},

View File

@@ -28,7 +28,7 @@ export const stations: Record<number, () => Promise<Song[]>> = new Proxy(customS
},
});
export const stationMetadata = Promise.resolve([
export const getStationMetadata = async (): Promise<Station[]> => [
...(await getChillhopData()).stations,
{ id: 50000, name: 'Lofi Sleep' },
]) as Promise<Station[]>;
];

View File

@@ -1,10 +1,10 @@
import { stationMetadata } from '@/stations';
import { getStationMetadata } from '@/stations';
import { getChillhopData } from '@/utils';
import type { RequestHandler } from '@sveltejs/kit';
export const GET: RequestHandler = async () => {
const responses = await Promise.all([
stationMetadata,
getStationMetadata(),
getChillhopData(),
]);