BlockerCode
fs_writeWrites files to disk
What it means
The site saves files in a folder on the server, such as images that visitors upload or a file with data.
Why it stops the deploy
Sites on DeployAI have no permanent disk. Every visit starts fresh, so a saved file is gone right away. The site will not go live until this changes.
How to fix it
- Files that visitors upload go to our file storage.
- Data such as orders or messages goes to our built in database.
- Reading files that are part of the site is fine when it happens at build time.
Prompt for your agent
Copy it and paste it into your agent. It fixes the project, explains each step, and runs the check again.
DeployAI check found this in the project: Writes files to disk. The site runs without a writable disk. Store uploaded files in R2 (object storage) and data in D1. Keep reads of bundled files only if they happen at build time. Explain your plan and wait for my approval before architectural changes. Do not remove features without asking. Explain every step to me in simple words. When done, run: npx deployai@latest check