Skip to content

Commit 4dc4dfd

Browse files
Merge pull request #1 from StreetSupport/feature/init_api
Initialize API
2 parents 25319a6 + cce669c commit 4dc4dfd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4410
-24
lines changed

.github/workflows/azure-deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ jobs:
4343
# Update to 'Production' || 'Staging' when configure additional environment
4444
environment: ${{ github.ref_name == 'main' && 'Staging' || 'Staging' }}
4545
permissions:
46-
id-token: write #This is required for requesting the JWT
47-
contents: read #This is required for actions/checkout
46+
id-token: write # Required for OIDC
47+
contents: read # Required for actions/checkout
48+
4849

4950
steps:
5051
- name: Download artifact from build job
@@ -64,7 +65,7 @@ jobs:
6465
uses: azure/webapps-deploy@v3
6566
with:
6667
# Current: Using slots in a single web app
67-
app-name: 'streetsupport-platform-api'
68+
app-name: ${{ vars.AZURE_APP_NAME }}
6869
# Update to 'Production' || 'Staging' when configure additional environment
6970
slot-name: ${{ github.ref_name == 'main' && 'Production' || 'Production' }}
7071

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
dist
6+
dist-ssr
7+
*.local
8+
9+
# production
10+
/build
11+
/app
12+
13+
# env files (can opt-in for committing if needed)
14+
.env*
15+
16+
# Editor directories and files
17+
.vscode/*
18+
!.vscode/extensions.json
19+
20+
# Logs
21+
logs
22+
*.log
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
pnpm-debug.log*
27+
lerna-debug.log*

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Whitespace-only changes.

instrument.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as Sentry from '@sentry/node';
2+
import dotenv from 'dotenv';
3+
4+
dotenv.config();
5+
6+
Sentry.init({
7+
dsn: process.env.SENTRY_DSN,
8+
environment: process.env.SENTRY_ENVIRONMENT,
9+
// Setting this option to true will send default PII data to Sentry.
10+
// For example, automatic IP address collection on events
11+
sendDefaultPii: true,
12+
});

0 commit comments

Comments
 (0)