Skip to main content

Deployment

We strongly recommend creating a docker image for deploying your application to the web. Because deploying the PageBuilder is not different from deploying a Next.js or Strapi application, we do not provide any additional custom docker container images or Dockerfile/docker-compose.yml.
Official Next.js Documentation
Official Strapi Documentation

Strapi Cloud

When hosting your Strapi project with Strapi Cloud you need to make sure that you adjust your environment-variables accordingly. Within Strapi those are: PABU_PUBLIC_FRONTEND_URL, PABU_CORS_ORIGINS and STRAPI_MEDIA_URL.
Inside of Next.js: NEXT_PUBLIC_STRAPI_MEDIA_URL, NEXT_PUBLIC_STRAPI_API_URL.

☁️ Strapi Cloud: STRAPI_MEDIA_URL & NEXT_PUBLIC_STRAPI_MEDIA_URL must include both the same URL. Like NEXT_PUBLIC_STRAPI_API_URL they must be defined without trailing slash!

☁️ Strapi Cloud: When developing locally you might want to add * to your PABU_CORS_ORIGINS. This should never be a permanent solution.