Docker
Learn how to deploy your Makeswift application with Docker.
Prerequisites
You’ll need a Makeswift site. If you don’t already have one, you can follow the developer quickstart or installation guide to get started.
You’ll also need to use Makeswift runtime version 0.23.2
or higher.
Deploying
Vercel has already documented how to deploy a Next.js application with Docker. The only change you have to make when deploying your Makeswift site is to your environment variables (details below).
Otherwise, you can follow the Next.js with Docker documentation.
Environment variables
You’ll need to include the MAKESWIFT_SITE_API_KEY
environment variable in your Docker build. This will need to be added in the .env
file that is included in your Docker build, or in the dashboard of your hosting provider.
Your Makeswift API key can be found in the Makeswift Visual Builder under Settings > Host.
Changelog
Version | Changes |
---|---|
v0.24.0 | Removes proxy requests for draft mode. MAKESWIFT_DRAFT_MODE_PROXY_FORCE_HTTP environment variable is no longer needed in Docker builds. |
v0.23.2 | Added support for Docker deployments |
Was this page helpful?