Roverpass Campground Chatbot — Widget

Embed the chatbot on any campground site with a single <script> tag. Replace the host with this deployment's URL and your campground's public_key:

<script
  src="https://<this-vercel-host>/widget.js"
  data-public-key="<campgrounds.public_key>"
  data-supabase-url="https://<your-project-ref>.supabase.co"
  async></script>

The campground's allowed_domains must include the site you're embedding on, otherwise the chat function will return 403.

The widget below only initializes when BOTH parameters are present in the URL: ?key=<public_key>&supabase=<https://project.supabase.co>. No project URL or key is hardcoded in this page.