Configuration
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 project to Webflow Cloud.
Deployment details
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.
Default configuration
When you deploy an environment in Webflow Cloud, Webflow automatically sets up the necessary configuration for deployment to the Workers platform.
During deployment, Webflow Cloud generates a wrangler.json
configuration file based on the framework specified in your webflow.json
file. This file includes recommended defaults for:
- Asset handling
- Node.js API compatibility
- Observability (for example, logging and metrics)
This production file is generated automatically and can’t be edited directly. For more details on Wrangler configuration, see the Wrangler documentation.
Next.js
Astro
Storage resources
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. All other configuration values remain managed by Webflow Cloud and can’t be modified directly. Learn more about storage in Webflow Cloud..
Framework configuration
Some frameworks require additional configuration to run on Webflow Cloud and the Workers runtime. If you’ve created a new project using the Webflow Cloud CLI, Webflow Cloud will automatically add the necessary configuration files to your project. If you’ve brought your own app, you’ll need to add the necessary files to your project.
Next.js
Astro
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.
Mount path configuration
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_URL
The 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:
- Navigation links and client-side routing
- Form actions and redirects
Next.js
Astro
ASSETS_PREFIX
ASSETS_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:
- Referencing static assets (images, CSS, JavaScript files)
- Uploading large files to your app
Next.js
Astro
Troubleshooting and common questions
Why can’t I edit wrangler.json
?
Why can’t I edit wrangler.json
?
Webflow Cloud manages this file to ensure compatibility and security.
How do I migrate an existing project?
If you’re migrating an existing project, follow the steps in the Bring your own app guide.