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.
npm install @matthiesenxyz/astro-ghostcms
pnpm add @matthiesenxyz/astro-ghostcms
yarn add @matthiesenxyz/astro-ghostcms
You must also create 2 environment variables in a .env
file with the following:
CONTENT_API_KEY=a33da3965a3a9fb2c6b3f63b48CONTENT_API_URL=https://ghostdemo.matthiesen.xyz
Then Change your astro config option in astro.config.ts
to looks like this:
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, }) ],});