We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6358c commit 19b9adeCopy full SHA for 19b9ade
src/middleware/index.ts
@@ -27,6 +27,11 @@ function isPublicPath(pathname: string): boolean {
27
return true;
28
}
29
30
+ // Allow static assets (CSS, JS, images, fonts)
31
+ if (pathname.startsWith('/_astro/') || pathname.startsWith('/favicon.')) {
32
+ return true;
33
+ }
34
+
35
// Allow API routes except auth-protected ones
36
if (pathname.startsWith('/api/') && !pathname.startsWith('/api/profiles') && !pathname.startsWith('/api/quests')) {
37
0 commit comments