Skip to content

Commit

Permalink
fix(app): add api key for hash endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cherrybarry authored and iqbaldevpro committed Apr 25, 2024
1 parent 3ed797f commit 5c55f58
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Configure the nearblocks Gateway by modifying the .env file. Customize settings
`BREVO_API_KEY=`
`BREVO_TO_EMAIL=`
`NEXT_PUBLIC_GTM_ID=GTM-P285ZPV2`
`API_KEY=`

## Deployment

Expand Down
1 change: 1 addition & 0 deletions apps/app/src/pages/hash/[receipt].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const getServerSideProps = async (context: any) => {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.API_KEY}`,
},
},
);
Expand Down
1 change: 1 addition & 0 deletions mainnet-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ services:
BREVO_API_KEY: ${BREVO_API_KEY}
BREVO_TO_EMAIL: ${BREVO_TO_EMAIL}
NEXT_PUBLIC_GTM_ID: GTM-P285ZPV2
env_file: testnet.app.env
1 change: 1 addition & 0 deletions mainnet.app.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_KEY=
1 change: 1 addition & 0 deletions testnet-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ services:
BREVO_API_KEY: ${BREVO_API_KEY}
BREVO_TO_EMAIL: ${BREVO_TO_EMAIL}
NEXT_PUBLIC_GTM_ID: GTM-P285ZPV2
env_file: testnet.app.env
1 change: 1 addition & 0 deletions testnet.app.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_KEY=
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"globalEnv": ["PORT"],
"globalEnv": ["PORT", "API_KEY"],
"pipeline": {
"build": {
"outputs": ["dist/**", ".next/**", "!.next/cache/**", "public/dist/**"],
Expand Down

0 comments on commit 5c55f58

Please sign in to comment.