Skip to content

Commit 17ac0b9

Browse files
committed
Move Sentry sourcemap generation to Vercel from GitHub Actions
1 parent 2acf463 commit 17ac0b9

2 files changed

Lines changed: 65 additions & 7 deletions

File tree

.cache/pages.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[
2+
"about",
3+
{
4+
"articles": [
5+
"getting-started-with-astro",
6+
"typescript-best-practices",
7+
"useful-vs-code-extensions",
8+
"writing-library-code"
9+
]
10+
},
11+
{
12+
"case-studies": [
13+
"division-15",
14+
"ecommerce-modernization",
15+
"english-first",
16+
"enterprise-api-platform",
17+
"labcorp",
18+
"us-logistics"
19+
]
20+
},
21+
"contact",
22+
"cookies",
23+
{
24+
"downloads": [
25+
"api-tool-consolidation-whitepaper",
26+
"identity-security-for-dummies",
27+
"lakehouse-analytics-guide",
28+
"observability-benefits-guide",
29+
"ransomware-recovery-kit"
30+
]
31+
},
32+
"offline",
33+
"privacy",
34+
{
35+
"services": [
36+
"create-custom-font-sets",
37+
"overview"
38+
]
39+
},
40+
{
41+
"social-shares": [
42+
"template"
43+
]
44+
},
45+
{
46+
"tags": [
47+
"apiDesign",
48+
"cms",
49+
"code",
50+
"crm",
51+
"graphql",
52+
"online-learning",
53+
"react",
54+
"services",
55+
"typescript"
56+
]
57+
}
58+
]

astro.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import {
1717
import { callToActionValidator } from './src/integrations/CtaValidator/call-to-action-validator'
1818
import { 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']
2222
const 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

2727
export 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

Comments
 (0)