Fix: allow script.js to load without auth for embedded sites (Shopify)

- Add /script.js to PUBLIC_ROUTES in middleware
- Fixes 307 redirect to /login when tracking script loads from third-party sites

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Usman Baig
2026-02-25 21:15:09 +01:00
parent 892ba4cb11
commit b0c15d6464

View File

@@ -12,6 +12,7 @@ const PUBLIC_ROUTES = new Set([
'/faq',
'/changelog',
'/installation',
'/script.js', // * Tracking script must load without auth for embedded sites (Shopify, etc.)
])
const PUBLIC_PREFIXES = [