A project you built with the Agent in Replit lives in Replit's cloud. To publish it on Ai to App, have the Agent prepare the project for upload, download it as a zip and upload it to Ai to App. Websites and server apps go live together with their databases.

  1. The Message to Send the Agent

    Open your project in Replit and write to the Agent:

    Read the guide at https://aitoapp.com/upload-guide. Get my project ready for Ai to App by following it, go through the checklist item by item and prepare the zip file.

    If the Agent cannot read the address, download the guide from the Ai to App home page, upload it to your project and point to it by file name in the message. When the Agent is done, open the three-dot menu at the top of the file tree and choose Download as zip. You upload that zip to Ai to App.

    So You Do Not Have to Explain It Every Time

    If you will update the project often, write the guide address into a replit.md file in the project root. The Agent uses this file in later chats too, so it follows the Ai to App rules from the start and fewer fixes are left at the end.

  2. What Goes in the Zip for Your Project

    Your ProjectWhat Goes in the Zip
    Plain HTML, CSS, JSThe files themselves
    React, Vue, Vite, AstroThe inside of the dist folder after the build
    Next.jsSource code. It is built on the server
    Node.js servers such as Express, FastifySource code and the lock file
    Python, .NETSource code

    Choosing the right folder is the Agent's job. This table only shows what to expect.

  3. How to Find the Zip

    The zip lands in your browser's Downloads folder. Drag the file into the box on the home page. If the zip is over 50 MB, node_modules is still inside it. Tell the Agent to remove it.

  4. After Publishing

    • Environment variables: For the variables the Agent listed, open My Apps, press Environment Variables on the app card, enter the values and choose Save and Republish. Do not put the values in the zip. .env files are not published. Only public values with the VITE_, NEXT_PUBLIC_, PUBLIC_, REACT_APP_ prefixes are passed to the build.
    • Replit Secrets: Values you entered in Replit Secrets are not included in the zip. Note them down in Replit and enter them again in Ai to App as described above.
    • Database: The contents of a Replit database do not come with the zip. If you have data, export it and move it separately.
    • If an error comes up: Paste the error text from Ai to App into the Agent and upload the new zip.
    • Updating: Upload the new zip from the same app's card. Your address stays the same and the data in the database is preserved.