Skip to content

Add robots.txt and bypass auth middleware for public assets#151

Merged
bmoss2015 merged 1 commit into
mainfrom
feat/robots-and-public-asset-bypass
Jun 18, 2026
Merged

Add robots.txt and bypass auth middleware for public assets#151
bmoss2015 merged 1 commit into
mainfrom
feat/robots-and-public-asset-bypass

Conversation

@bmoss2015

Copy link
Copy Markdown
Owner

M5 — robots.txt

Adds public/robots.txt so search engines crawl the marketing site and skip authed/onboarding routes.

  • Allow /
  • Disallow /app/, /api/, /onboarding/, /welcome/
  • References https://nextsurplus.com/sitemap.xml (aspirational; sitemap.xml not yet built)

M4a — Middleware bypass for public assets

Extends the static-asset early-return in src/proxy.ts so social crawlers (Twitter/X, Facebook, LinkedIn, Slack, iMessage) and PWA manifest fetchers can reach these without hitting the auth gate or host-split redirect:

  • /apple-touch-icon.png
  • /android-chrome-*.png
  • /manifest.json
  • /og-image.png
  • /robots.txt

Existing bypasses (/_next, /api/, /auth/callback, /images/, /brand/, /favicon*) untouched.

Test plan

After preview deploys, verify each returns 200 (not 308/302):

  • curl -I <preview>/robots.txt
  • curl -I <preview>/favicon.ico
  • curl -I <preview>/og-image.png
  • curl -I <preview>/manifest.json

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
moss-equity-portal Ready Ready Preview, Comment Jun 18, 2026 3:17am

Request Review

@supabase

supabase Bot commented Jun 18, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project rsdmyydyhqgkkvwlklif because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@bmoss2015 bmoss2015 merged commit ce036ff into main Jun 18, 2026
4 checks passed
@bmoss2015 bmoss2015 deleted the feat/robots-and-public-asset-bypass branch June 18, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant