Skip to content

Commit e72bd21

Browse files
BYKbitsandfoxes
authored andcommitted
ref(md): Upload developer docs to their own bucket (#14188)
1 parent f49df5d commit e72bd21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/generate-md-exports.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ import {unified} from 'unified';
2525
import {remove} from 'unist-util-remove';
2626

2727
const CACHE_COMPRESS_LEVEL = 4;
28-
const R2_BUCKET = 'sentry-docs';
28+
const R2_BUCKET = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
29+
? 'sentry-dev-docs'
30+
: 'sentry-docs';
2931
const accessKeyId = process.env.R2_ACCESS_KEY_ID;
3032
const secretAccessKey = process.env.R2_SECRET_ACCESS_KEY;
3133

0 commit comments

Comments
 (0)