Not everything in an app can safely or efficiently happen on the user’s device. Some tasks need extra security, reliability, or processing power. That’s where server functions (sometimes called edge functions) come in. Server functions handle important work behind the scenes, like talking to your database, checking permissions, or processing payments. Instead of running this logic directly in a user’s browser or mobile app, where it could be slower or less secure, the function runs on a server. This keeps sensitive information safe and makes sure your app behaves consistently for every user. Common use cases include:Documentation Index
Fetch the complete documentation index at: https://support.bolt.new/llms.txt
Use this file to discover all available pages before exploring further.
- Handling payments, authentication, or other sensitive logic
- Receiving webhooks from third-party services like Stripe or GitHub
- Generating images or social preview cards on demand
- Calling external AI APIs like OpenAI
- Sending transactional emails
- Building messaging bots for Slack, Discord, or other platforms
View server functions
To open the server functions settings for your project’s database:- Open your Bolt project.
- In the top center of the screen, click the gear icon, then click Server Functions.

View logs
To view logs for a server function, click View Logs:

Delete server functions
To delete a server function:- Open your Bolt project.
- In the top center of the screen, click the gear icon, then click Server Functions.
- Find the function you want to delete, then click the trash can icon.
- Click Delete to confirm.