Skip to content

Install

API Only Install

In this mode the integration will not deploy routes at all. you will have to build your own website to utilize the exported functions listed below.

Terminal window
npm install @matthiesenxyz/astro-ghostcms

You must also create 2 environment variables in a .env file with the following:

.env
CONTENT_API_KEY=a33da3965a3a9fb2c6b3f63b48
CONTENT_API_URL=https://ghostdemo.matthiesen.xyz

Then Change your astro config option in astro.config.ts to looks like this:

astro.config.ts
import { defineConfig } from "astro/config";
import GhostCMS from '@matthiesenxyz/astro-ghostcms';
export default defineConfig({
site: "https://YOUR-DOMAIN-HERE.com",
// THIS WILL DISABLE DEFAULT ROUTE INJECT
integrations: [
GhostCMS({
// You can either set your ghostURL here or as a `.env`/environment variable
ghostURL: "https://ghostdemo.matthiesen.xyz",
disableRouteInjection: true,
})
],
});