File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
static/app/gettingStartedDocs/javascript Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ describe('javascript-astro onboarding docs', () => {
174174 ) . not . toBeInTheDocument ( ) ;
175175 } ) ;
176176
177- it ( 'shows only sourceMapsUploadOptions in astro.config.mjs' , ( ) => {
177+ it ( 'shows only build-time options in astro.config.mjs' , ( ) => {
178178 renderWithOnboardingLayout ( docs , {
179179 selectedProducts : [
180180 ProductSolution . ERROR_MONITORING ,
@@ -184,9 +184,9 @@ describe('javascript-astro onboarding docs', () => {
184184 ] ,
185185 } ) ;
186186
187- // astro.config.mjs should only contain sourceMapsUploadOptions
187+ // astro.config.mjs should only contain build-time options
188188 expect (
189- screen . getByText ( textWithMarkupMatcher ( / s o u r c e M a p s U p l o a d O p t i o n s / ) )
189+ screen . getByText ( textWithMarkupMatcher ( / p r o c e s s . e n v . S E N T R Y _ A U T H _ T O K E N / ) )
190190 ) . toBeInTheDocument ( ) ;
191191
192192 // Runtime config should NOT be in astro.config.mjs anymore
Original file line number Diff line number Diff line change @@ -39,11 +39,9 @@ import sentry from "@sentry/astro";
3939export default defineConfig({
4040 integrations: [
4141 sentry({
42- sourceMapsUploadOptions: {
43- project: "${ params . project . slug } ",
44- org: "${ params . organization . slug } ",
45- authToken: process.env.SENTRY_AUTH_TOKEN,
46- },
42+ project: "${ params . project . slug } ",
43+ org: "${ params . organization . slug } ",
44+ authToken: process.env.SENTRY_AUTH_TOKEN,
4745 }),
4846 ],
4947});
@@ -407,11 +405,9 @@ import sentry from "@sentry/astro";
407405export default defineConfig({
408406 integrations: [
409407 sentry({
410- sourceMapsUploadOptions: {
411- project: "${ params . project . slug } ",
412- org: "${ params . organization . slug } ",
413- authToken: process.env.SENTRY_AUTH_TOKEN,
414- },
408+ project: "${ params . project . slug } ",
409+ org: "${ params . organization . slug } ",
410+ authToken: process.env.SENTRY_AUTH_TOKEN,
415411 }),
416412 ],
417413});
You can’t perform that action at this time.
0 commit comments