Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Example boilerplate showing Supabase authentication with Astro's SSG/SSR pages, deployed to Vercel.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
Astro-Supabase-Vercel is an open-source boilerplate that demonstrates how to integrate Supabase authentication into an Astro site that mixes static site generation (SSG) and server-side rendering (SSR), deployed to Vercel.
Astro-Supabase-Vercel is an example application repository that wires together three services: Astro as the framework, Supabase for user sign-up and authentication, and Vercel for hosting. It produces a working app with login and register screens, authenticated sessions, and a mix of statically generated and server-rendered pages. The repo is used as a reference implementation and is available on GitHub with a live demo at astro-supabase-vercel.vercel.app.
@astrojs/vercel) and includes a live demo on Vercel.client:only="react" directive, showing the islands architecture.client:only for interactive parts.The app uses Astro's server-side rendering to handle authentication logic. When a user signs up or logs in, Supabase validates the credentials and the server sets a cookie with the session, then redirects to a protected page. The client-side auth form is a React island loaded with client:only="react". The whole app is deployed to Vercel through the @astrojs/vercel adapter, which enables both static pages and serverless functions.
Yes, the repository is open-source and available for anyone to use or fork, with no licensing fees mentioned.
It uses Supabase's email/password authentication. Supabase handles user sign-up, login, and session tokens, while Astro manages the server-side cookie and redirects.
Yes, the project is explicitly configured for Vercel using the @astrojs/vercel adapter, and the live demo runs on a Vercel domain.
The README states that error handling is minimal, so you should add your own validation and error messages before using it in production.
The development log lists two: cookies should be Secure and HttpOnly, and JWT renewal is not automatic. Both are flagged as areas to fix.
