Skip to content

Commit 85c2b92

Browse files
committed
Correcting data center location uscentral-1 -> us-central1
1 parent 03dd64d commit 85c2b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase_javascript_v1/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ credentials = {
2727
const client = new SessionsClient({apiEndpoint: 'us-central1-dialogflow.googleapis.com'});
2828

2929
// onCall(async (data, context)
30-
exports.getTrivia = functions.region('uscentral-1').runWith({memory: '128MB'}).https.onRequest(async (req, res) => {
30+
exports.getTrivia = functions.region('us-central1').runWith({memory: '128MB'}).https.onRequest(async (req, res) => {
3131
// CORS handling
3232
res.set('Access-Control-Allow-Origin', "*");
3333
res.set('Access-Control-Allow-Methods', 'GET, POST');

0 commit comments

Comments
 (0)