Skip to content

Commit c98c6da

Browse files
committed
fix(test): use env var for GCS bucket to avoid local 403 errors
1 parent 4079e2b commit c98c6da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

genai/image-generation/test/imggen-util.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
const {Storage} = require('@google-cloud/storage');
1616
const {format} = require('date-fns');
1717

18-
const gcsOutputBucket = 'nodejs-docs-samples-tests';
18+
const gcsOutputBucket =
19+
process.env.GCLOUD_STORAGE_BUCKET || 'nodejs-docs-samples-tests';
1920

2021
module.exports.createOutputGcsUri = async function () {
2122
const prefix = `text_output/${format(new Date(), 'yyyy-MM-dd-HH-mm-ss')}`;

0 commit comments

Comments
 (0)