Webflow Cloud is designed to handle most of your deployment configuration, so you can focus on building your app. This page explains what’s configured automatically and what you need to know if you want to understand or troubleshoot the process.
For step-by-step setup use the following guides:
Get started with Webflow Cloud by following our step-by-step guide.
Migrate an existing app to Webflow Cloud.
Webflow Cloud hosts your app on Cloudflare Workers, running it at a base path within your Webflow Cloud environment (for example, /app). This base path serves as the mount point for your application.
When you deploy your environment, Webflow Cloud uses Wrangler, Cloudflare’s official CLI, to deploy your app to the Workers platform with a standard configuration.
When you deploy an environment in Webflow Cloud, Webflow uses the necessary configuration for deployment to the Workers platform.
During deployment, Webflow Cloud uses a wrangler.json configuration file based on the framework specified in your webflow.json file. This file includes recommended defaults for:
For more details on Wrangler configuration, see the Wrangler documentation.
Here are examples of wrangler.json files for Next.js and Astro:
If your app requires storage, you can declare storage bindings in your wrangler.json file. Webflow Cloud reads these bindings during deployment and automatically creates the corresponding storage resources in your environment. Learn more about storage in Webflow Cloud..
Some frameworks require additional configuration to run on Webflow Cloud and the Workers runtime. If you’ve created an app using the Webflow Cloud CLI, Webflow Cloud will automatically add the necessary configuration files to your app. If you’ve brought your own app, you’ll need to add the necessary files to your app.
Next.js apps require the following files:
next.config.js: Configures your environment’s mount path and adapter settings.open-next.config.ts: Optimizes Next.js for the edge runtime.cloudflare.env.ts: Enables your app to access your environment variables.When you create an environment, you set a mount path, which is the subpath where your app will be accessible.
For example, with a mount path of /app, your app lives at:
In your framework configuration, make sure you set your app’s base path and asset prefix to the mount path of your environment. When building your app, use the provided BASE_URL and ASSETS_PREFIX environment variables to construct correct paths instead of hard-coding them.
BASE_URLThe BASE_URL variable represents the mount path of your environment. Combine this with your Webflow Cloud domain to create the URL where your application is accessible to users.
Use for:
ASSETS_PREFIXASSETS_PREFIX is the URL for static assets and some direct API calls. The ASSETS_PREFIX URL points directly to the Worker handling your app.
Use for:
If you’re migrating an existing app, follow the steps in the Bring your own app guide.