Deployment
The project is configured for Netlify, but the frontend can be hosted anywhere that supports a Vite static build.Static frontend
Build the app:Netlify
netlify.toml defines:
npm run buildas the build command.distas the publish directory.netlify/functionsas the functions directory.- Public API redirects for
/api/v1/subscriptions. - SPA redirects to
index.html. - Basic security headers.
Functions
Netlify Functions are used for:- Creating Stripe Checkout sessions.
- Handling Stripe webhooks.
- Running scheduled Bark reminder checks.
- Creating and revoking Developer API keys.
- Serving the public subscription CRUD API.
- Cleaning up public API rate limit windows.
Deployment checklist
- Add only the environment variables for services you plan to enable.
- Run Supabase SQL migrations before enabling cloud sync, public API keys, payments, or scheduled notifications.
- Configure Stripe webhook URLs after the Netlify site URL is available.
- Test local-first behavior with no optional variables configured.
- Test hosted behavior with Supabase, Stripe, API keys, and notification settings enabled as needed.
- Run
npm run checkbefore publishing application changes.
Public API routes
The public API is served through Netlify redirects:/api/v1/subscriptions path in client documentation and examples.