Skip to content

Commit

Permalink
add node-fetch
Browse files Browse the repository at this point in the history
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
  • Loading branch information
mooxl committed May 17, 2023
1 parent b961ec8 commit ef3b65b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions payload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types"
},
"dependencies": {
"payload": "^1.8.2",
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"cross-env": "^7.0.3"
"node-fetch": "^3.3.1",
"payload": "^1.8.2"
},
"devDependencies": {
"@types/express": "^4.17.9",
Expand Down
2 changes: 1 addition & 1 deletion payload/src/collections/Posts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CollectionConfig } from "payload/types";

import fetch from "node-fetch";
const Posts: CollectionConfig = {
slug: "posts",
admin: {
Expand Down

0 comments on commit ef3b65b

Please sign in to comment.