- Replace raw `ANY(${array})` SQL with drizzle's inArray() in
src/lib/server/export/financial.ts; the raw form sent UUID arrays
in a malformed Postgres array literal causing 500 on download
- Add static/favicon.svg (Thai baht symbol on blue square) and point
app.html at it; remove the empty favicon.png
- Redirect /favicon.ico to /favicon.svg in hooks.server.ts so
browsers' implicit fallback request stops 404'ing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -1,7 +1,12 @@
|
||||
import type { Handle } from '@sveltejs/kit';
|
||||
import { redirect, type Handle } from '@sveltejs/kit';
|
||||
import { validateSession, setSessionCookie } from '$lib/server/auth/index.js';
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
// Redirect implicit /favicon.ico requests to our SVG to avoid 404 noise
|
||||
if (event.url.pathname === '/favicon.ico') {
|
||||
redirect(302, '/favicon.svg');
|
||||
}
|
||||
|
||||
const token = event.cookies.get('session');
|
||||
|
||||
if (token) {
|
||||
|
||||
Reference in New Issue
Block a user