Skip to content

Commit 651604e

Browse files
committed
fix(routes): use native global fetch with node-fetch fallback (Node 20 CI compatible)
1 parent 50abe2c commit 651604e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

soulfield-v2-mvp/src/routes/aurea-sentences.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const express = require("express");
22

33
const { sendSentence } = require('../lib/enforcedSse');
4-
const fetch = require('node-fetch');
4+
const fetch = (globalThis const fetch = require('node-fetch');const fetch = require('node-fetch'); globalThis.fetch) ? globalThis.fetch : ((...args) => import("node-fetch").then(({default: f}) => f(...args)));
55
const fs = require('fs');
66
const path = require('path');
77

0 commit comments

Comments
 (0)