diff --git a/.cache/pages.d.ts b/.cache/pages.d.ts new file mode 100644 index 000000000..9b78bffa5 --- /dev/null +++ b/.cache/pages.d.ts @@ -0,0 +1,17 @@ +/** + * Type declaration for generated pages.json file + * This file is generated during the build process + */ + +type PageData = + | string + | { articles: string[] } + | { 'case-studies': string[] } + | { downloads: string[] } + | { services: string[] } + | { 'social-shares': string[] } + | { stories: string[] } + | { tags: string[] } + +declare const pagesData: PageData[] +export default pagesData diff --git a/.cache/pages.json b/.cache/pages.json new file mode 100644 index 000000000..c0adc825a --- /dev/null +++ b/.cache/pages.json @@ -0,0 +1,63 @@ +[ + "about", + { + "articles": [ + "getting-started-with-astro", + "typescript-best-practices", + "useful-vs-code-extensions", + "writing-library-code" + ] + }, + { + "case-studies": [ + "division-15", + "ecommerce-modernization", + "english-first", + "enterprise-api-platform", + "labcorp", + "us-logistics" + ] + }, + "contact", + "cookies", + { + "downloads": [ + "api-tool-consolidation-whitepaper", + "identity-security-for-dummies", + "lakehouse-analytics-guide", + "observability-benefits-guide", + "ransomware-recovery-kit" + ] + }, + "offline", + "privacy", + { + "services": [ + "create-custom-font-sets", + "overview" + ] + }, + { + "social-shares": [ + "template" + ] + }, + { + "stories": [ + "ISSUES" + ] + }, + { + "tags": [ + "apiDesign", + "cms", + "code", + "crm", + "graphql", + "online-learning", + "react", + "services", + "typescript" + ] + } +] \ No newline at end of file diff --git a/.gitignore b/.gitignore index a355a51ce..f96c71ca3 100644 --- a/.gitignore +++ b/.gitignore @@ -32,8 +32,10 @@ npm-debug.log* # Optional eslint cache .eslintcache -# Cache -.cache +# Cache - ignore all contents except type declarations and placeholder data +.cache/* +!.cache/*.d.ts +!.cache/pages.json # Runtime data pids diff --git a/astro.config.ts b/astro.config.ts index 736d10080..1bf17920d 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -17,12 +17,8 @@ import { import { callToActionValidator } from './src/integrations/CtaValidator/call-to-action-validator' import { serializeSitemapItem, writePagesJson } from './src/lib/config/sitemap-serialize' -// Type guard for required environment variables (only in CI) -const IS_CI = process.env['CI'] === 'true' +// Check for Sentry auth token (optional - Sentry will be skipped if not available) const SENTRY_AUTH_TOKEN = process.env['SENTRY_AUTH_TOKEN'] -if (IS_CI && !SENTRY_AUTH_TOKEN) { - throw new Error('SENTRY_AUTH_TOKEN environment variable is required in CI but not set') -} export default defineConfig({ adapter: vercelStatic(vercelConfig),