Deploy Bolt.diy on Alibaba Cloud Function Compute in Minutes
This guide walks you through deploying the open‑source Bolt.diy platform on Alibaba Cloud Function Compute, integrating Bailei model services, configuring API keys, and using AI‑assisted code generation for a full‑stack, serverless application.
Solution Overview
The solution deploys the open‑source Bolt.diy project on Alibaba Cloud Function Compute (FC) and uses the Bailei model service for AI‑driven code generation. The default model is deepseek-v3, but other LLMs (OpenAI, Gemini, Hugging Face, etc.) can be selected.
Key Features
Multi‑model flexibility : Supports various large language models, allowing task‑specific model selection.
Extensibility : Modular architecture with custom Docker services, third‑party tool integration, and plugin support for private LLMs.
Full‑stack generation : Generates React front‑end and Node.js back‑end code via natural‑language prompts, provides real‑time debugging, version control, one‑click deployment, and visual tools for SQL/NoSQL databases.
AI‑assisted tooling : Real‑time error analysis, fix suggestions, and code‑structure visualizations.
Architecture & Deployment
Function Compute provides a fully managed serverless environment. Bailei model service supplies the LLM for code generation.
Deployment Steps
Open the Function Compute FunctionAI project template at
https://cap.console.aliyun.com/create-project?template=cap-bolt-diy&from=solution, keep default parameters, and click Deploy.
Authorize access when prompted; deployment takes about one minute.
After deployment, retrieve the HTTPS access URL from the console.
Configure Bailei API‑Key
Log in to the Bailei model service console at https://bailian.console.aliyun.com/.
Navigate to API‑Key, create or view the key, and copy it.
In the FunctionAI console, edit the configuration, paste the API‑Key, and save.
Prompt‑Based Code Generation
Select prompts in the UI; the system uses deepseek-v3 by default. Other models can be chosen from a dropdown.
Preview & Troubleshooting
If the generated page fails to load, try the following commands in the terminal:
npm install npm run devUse the "Ask Bolt" feature to let the AI fix issues. To restart, press Ctrl+C and run npm run dev again.
Build and Download
When the code meets requirements, run: npm run build The build output appears in a dist folder, which can be downloaded as a zip file.
Notes
The provided test domain expires after one day; for production, configure a custom domain (see
https://help.aliyun.com/zh/functioncompute/fc-3-0/user-guide/configure-custom-domain-names).
All resources must be served over HTTPS to satisfy SharedArrayBuffer security requirements.
Alibaba Cloud Native
We publish cloud-native tech news, curate in-depth content, host regular events and live streams, and share Alibaba product and user case studies. Join us to explore and share the cloud-native insights you need.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
