more internal code notes!

This commit is contained in:
Adam Matthiesen 2024-03-04 12:58:42 -08:00
parent f881e4f2a6
commit ee0d5b5147
1 changed files with 8 additions and 0 deletions

View File

@ -126,6 +126,7 @@ export default defineIntegration({
), ),
); );
// Check for GhostCMS API Key
if (ENV.CONTENT_API_KEY === undefined) { if (ENV.CONTENT_API_KEY === undefined) {
GhostENVLogger.error( GhostENVLogger.error(
c.bgRed( c.bgRed(
@ -139,6 +140,7 @@ export default defineIntegration({
); );
} }
// Check for GhostCMS URL
if (options.ghostURL === undefined) { if (options.ghostURL === undefined) {
GhostENVLogger.warn( GhostENVLogger.warn(
c.bgYellow( c.bgYellow(
@ -173,6 +175,7 @@ export default defineIntegration({
c.bold(c.magenta("Configuring Enabled Integrations")), c.bold(c.magenta("Configuring Enabled Integrations")),
); );
// Setup GhostCMS Theme Provider
localIntegration( localIntegration(
!options.ThemeProvider?.disableThemeProvider, !options.ThemeProvider?.disableThemeProvider,
"Theme Provider", "Theme Provider",
@ -182,28 +185,33 @@ export default defineIntegration({
}) })
); );
// Setup GhostCMS OG Image Provider
localIntegration( localIntegration(
options.enableOGImages, options.enableOGImages,
"Satori OG Images", "Satori OG Images",
ghostOGImages({ verbose }) ghostOGImages({ verbose })
); );
// Setup GhostCMS RSS Feed Provider
localIntegration( localIntegration(
options.enableRSSFeed, options.enableRSSFeed,
"RSS Feed", "RSS Feed",
ghostRSS({ verbose }) ghostRSS({ verbose })
); );
// Setup @astrojs/sitemap Integration
checkIntegration( checkIntegration(
"@astrojs/sitemap", "@astrojs/sitemap",
sitemap(options.Integrations?.sitemap) sitemap(options.Integrations?.sitemap)
); );
// Setup astro-robots-txt Integration
checkIntegration( checkIntegration(
"astro-robots-txt", "astro-robots-txt",
robotsTxt(options.Integrations?.robotsTxt) robotsTxt(options.Integrations?.robotsTxt)
); );
// Setup Default 404 Page
routeHelper( routeHelper(
"Default 404 Page", "Default 404 Page",
!options.disableDefault404, !options.disableDefault404,