@@ -17,11 +17,11 @@ import {
1717import { callToActionValidator } from './src/integrations/CtaValidator/call-to-action-validator'
1818import { serializeSitemapItem , writePagesJson } from './src/lib/config/sitemap-serialize'
1919
20- // Type guard for required environment variables (only in CI )
21- const IS_CI = process . env [ 'CI' ] === 'true'
20+ // Type guard for required environment variables (only in Vercel )
21+ const IS_VERCEL = process . env [ 'VERCEL' ]
2222const SENTRY_AUTH_TOKEN = process . env [ 'SENTRY_AUTH_TOKEN' ]
23- if ( IS_CI && ! SENTRY_AUTH_TOKEN ) {
24- throw new Error ( 'SENTRY_AUTH_TOKEN environment variable is required in CI but not set' )
23+ if ( IS_VERCEL && ! SENTRY_AUTH_TOKEN ) {
24+ throw new Error ( 'SENTRY_AUTH_TOKEN environment variable is required in Vercel but not set' )
2525}
2626
2727export default defineConfig ( {
@@ -38,11 +38,11 @@ export default defineConfig({
3838 callToActionValidator ( {
3939 debug : true // Enable debug logging to see validation details
4040 } ) ,
41- // Only include Sentry integration in CI environments
42- ...( IS_CI && SENTRY_AUTH_TOKEN ? [ sentry ( {
41+ // Only include Sentry integration in Vercel environments
42+ ...( IS_VERCEL ? [ sentry ( {
4343 project : "webstack-builders-corporate-website" ,
4444 org : "webstack-builders" ,
45- authToken : SENTRY_AUTH_TOKEN ,
45+ authToken : SENTRY_AUTH_TOKEN ! , // Non-null assertion safe due to check above
4646 } ) ] : [ ] ) ,
4747 sitemap ( {
4848 lastmod : new Date ( ) ,
0 commit comments