Running a headless Craft CMS on fortrabbit
Published
Updated
Deploy Craft CMS as a headless backend with a decoupled frontend using GraphQL API on fortrabbit.
Headless Craft CMS
In headless mode, Craft CMS manages content and serves it through its GraphQL API, without Twig templates. A separate frontend, built with Next, Nuxt, React or Vue, fetches the content and renders the pages. Craft runs on fortrabbit like any other Craft project; the frontend runs where its framework needs it, see headless considerations.
Compress JSON responses
fortrabbit sends responses uncompressed until .htaccess turns compression on. Include application/json for the GraphQL API, see GZIP and Brotli.