Cloud Functions Integration
Add serverless backend functionality to your Firebase Hosting site with Cloud Functions.
Overview​
Cloud Functions let you run backend code in response to HTTPS requests without managing servers.
Quick Start​
const functions = require('firebase-functions');
exports.api = functions.https.onRequest((req, res) => {
res.json({ message: 'Hello from Cloud Functions!' });
});
Integration with Hosting​
{
"hosting": {
"rewrites": [{
"source": "/api/**",
"function": "api"
}]
}
}
Coming Soon​
This documentation is being expanded. For now, please refer to:
- Backend Overview for integration patterns
- Official Cloud Functions docs