Skip to content

Commit

Permalink
remove dotenv references
Browse files Browse the repository at this point in the history
  • Loading branch information
finlay-jisc committed Nov 21, 2024
1 parent ef474a6 commit 7e49490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/jest-setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Ensure that process.env values are defined when jest runs code, to match the behaviour
// configured by serverless's "useDotenv" option (which also uses dotenv-expand).
// Ensure that process.env values are defined when jest runs code, to match the
// way serverless interprets env files.

import * as dotenv from 'dotenv';
import { expand } from 'dotenv-expand';
Expand Down
2 changes: 0 additions & 2 deletions api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ stages:
prod:
observability: true

useDotenv: ${file(./serverless-config-default.yml):useDotenv}

plugins:
- serverless-prune-plugin
- serverless-plugin-split-stacks
Expand Down

0 comments on commit 7e49490

Please sign in to comment.