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_URLmust include both the same URL. LikeNEXT_PUBLIC_STRAPI_API_URLthey must be defined without trailing slash!
☁️ Strapi Cloud: When developing locally you might want to add
*to yourPABU_CORS_ORIGINS. This should never be a permanent solution.