Running a headless Craft CMS on fortrabbit
Reviewedbyfl
Markdown ↓Deploy Craft CMS as a headless backend with a decoupled frontend using GraphQL API on fortrabbit.
Intro
Headless Craft CMS separates content management from presentation by running the backend only, without server-side Twig templates, while a decoupled frontend application (typically built with Next, Nuxt, React, or Vue) fetches content via the built-in GraphQL API and renders it on the client-side in the browser.
Headers
HTTP responses with content type text/html, text/css, and text/javascript are gzipped by default on fortrabbit. In headless mode, Craft returns application/json responses, which are not gzipped by default. See GZIP compression to enable gzip for JSON responses.