- Go to Tools -> External Tools.
- Click the + button to add a new tool.
- Set the name to
npx tsx
. - Configure the Tool Settings as follows:
- Program:
npx
- Arguments:
tsx $FilePathRelativeToProjectRoot$
- Working directory:
$ProjectFileDir$
- Program:
The serviceAccountKey.json
file is the service account key for your Firebase project. This file can be generated and downloaded from the Firebase console. Follow these steps to obtain your service account key:
-
Login to Firebase Console: Login to the Firebase Console.
-
Select Project: Choose the Firebase project that uses Firestore.
-
Navigate to Project Settings: Click on "Project Settings" in the top left menu of the Firebase console.
-
Service Accounts: Select the "Service Accounts" tab from the top of the settings page.
-
Generate New Private Key:
- Click on the "Generate New Private Key" button at the bottom of the page.
- In the warning dialog, click "Generate Key".
- A JSON file will be automatically downloaded.
b2에서 keyID 가 Access Key이고 applicationKey 가 Secret Key이다. 그에 맞게 설정하면 된다. Endpoint, Bucket, Region(예: us-west-001)을 설정하면 된다.