Skip to main content

Database FAQs

I want to switch from Supabase to Bolt Database: can I?

There is currently no supported flow for migrating Supabase databases to Bolt databases.

What are server functions (also called edge functions)m and when should I use them?

Server functions run on the backend (or at the edge) rather than in the user’s browser or mobile app. They are useful for tasks that require extra security, reliability, or power. For example: talking to your database, checking permissions, processing payments, receiving webhooks, and generating images or Open Graph tags. Use them when you don’t want sensitive logic exposed in the client, want consistent behaviour, or need low-latency HTTP endpoints. Learn more about server functions.

How do I safely use API keys or other secrets in my server functions?

Prompt Bolt or use the Secrets section to create a named secret value (such as an API key or database password), then reference it in your server function. That way, the secret stays outside your plain code and is not exposed to users.