Skip to content

Commit

Permalink
Revert "Setup condition to use dev db on local and staging instance (#…
Browse files Browse the repository at this point in the history
…372)" (#377)

This reverts commit fb26e9c.
  • Loading branch information
js0mmer authored Nov 4, 2023
1 parent fb26e9c commit cc7dad6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
PRODUCTION_DOMAIN: ${{secrets.PRODUCTION_DOMAIN}}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
NODE_ENV: ${{ github.event_name == 'pull_request' && 'staging' || 'production' }}

- name: Comment staging URL
uses: marocchino/sticky-pull-request-comment@v2
Expand Down
2 changes: 1 addition & 1 deletion api/src/helpers/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const client = new MongoClient(process.env.MONGO_URL, { useNewUrlParser: true, u
/**
* Database name to use in mongo
*/
const DB_NAME = process.env.NODE_ENV == 'production' ? 'peterPortalDB' : 'peterPortalDevDB';
const DB_NAME = 'peterPortalDB';
/**
* Collection names that we are using
*/
Expand Down
2 changes: 1 addition & 1 deletion api/src/types/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ declare global {
*/
interface ProcessEnv {
MONGO_URL: string;
NODE_ENV: 'development' | 'production' | 'staging';
NODE_ENV: 'development' | 'production';
PORT?: string;
PUBLIC_API_URL: string;
PUBLIC_API_GRAPHQL_URL: string;
Expand Down

0 comments on commit cc7dad6

Please sign in to comment.