This commit is contained in:
parent
b16694debe
commit
bbddc699de
|
@ -72,7 +72,7 @@ export default function GhostCMS(options: UserConfig): AstroIntegration {
|
|||
if (!GhostUserConfig.success) {
|
||||
const validationError = fromZodError((GhostUserConfig as unknown as SafeParseError<UserConfig>).error);
|
||||
logger.error(`Config Error - ${ validationError }`);
|
||||
throw validationError;
|
||||
throw Error("");
|
||||
}
|
||||
const GhostConfig = GhostUserConfig.data;
|
||||
const GCD = {
|
||||
|
|
|
@ -7,12 +7,13 @@ export const UserConfigSchema = z.object({
|
|||
* @example
|
||||
* // https://astro.build/config
|
||||
* export default defineConfig({
|
||||
* site: "https://demo.astro-ghostcms.xyz/",
|
||||
* integrations: [ghostcms({
|
||||
* integrations: [
|
||||
* ghostcms({
|
||||
* ghostURL: "https://ghostdemo.matthiesen.xyz"
|
||||
* })],
|
||||
* })
|
||||
* ],
|
||||
* }); */
|
||||
ghostURL: z.string().optional(),
|
||||
ghostURL: z.string().url().optional(),
|
||||
/** OPTIONAL - Disable Route Injector
|
||||
* This option allows the user to disable the route injection system and utilize just the integraions other functions. Such as API, sitemap and robotstxt integrations. */
|
||||
disableRouteInjection: z.boolean().default(false),
|
||||
|
|
|
@ -4,7 +4,12 @@ import ghostcms from "@matthiesenxyz/astro-ghostcms";
|
|||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: "https://demo.astro-ghostcms.xyz/",
|
||||
integrations: [ ghostcms({
|
||||
ghostURL: "https://ghostdemo.matthiesen.xyz"
|
||||
})],
|
||||
integrations: [
|
||||
ghostcms({
|
||||
disableConsoleOutput: true,
|
||||
disableRouteInjection: false,
|
||||
theme: "@matthiesenxyz/astro-ghostcms-theme-default",
|
||||
ghostURL: "https://ghostdemo.matthiesen.xyz",
|
||||
})
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue