Skip to content

Commit

Permalink
pain
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin2Shih committed Mar 11, 2024
1 parent 96bc204 commit b463637
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: npm install

- name: Set Environment Variables
run: netlify env:set --secret MONGODB_URI ${{ secrets.MONGODB_URI }}
run: netlify env:set MONGODB_URI ${{ secrets.MONGODB_URI }}
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: npm install

- name: Set Environment Variables
run: netlify env:set --secret MONGODB_URI ${{ secrets.MONGODB_URI }}
run: netlify env:set --secret MONGODB_URI ${{ secrets.MONGODB_URI }} --context production
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions app/(api)/api/pain/get.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { NextRequest, NextResponse } from 'next/server';

export async function GET(_: NextRequest) {
return NextResponse.json({ ok: true, data: process.env.TEST_SECRET });
}
1 change: 1 addition & 0 deletions app/(api)/api/pain/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { GET } from './get';
3 changes: 0 additions & 3 deletions app/(pages)/test/page.tsx

This file was deleted.

0 comments on commit b463637

Please sign in to comment.