From 4da634027f1b7cc7c8efc89c488db305aacf1b4d Mon Sep 17 00:00:00 2001 From: Akshaya Acharya Date: Thu, 24 Oct 2024 00:23:08 +0530 Subject: [PATCH] Update readme to avoid node memory limit crashes --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 35487e7..9a0f29c 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ Ofcourse, the tradeoff is that the data will only be eventually consistent becau 1. Clone this repo 2. Setup: `npm i` -3. Run: `HASURA_SERVICE_TOKEN_SECRET=secrettoken HASURA_CONNECTOR_PORT=9094 npx ts-node ./src/index.ts serve --configuration=.` -4. remove `duck.db` and `duck.db.wal` from `.gitignore` if you'd like -5. Add to your DDN project: +3. Run: `NODE_OPTIONS="--max-old-space-size=4096" HASURA_SERVICE_TOKEN_SECRET=secrettoken HASURA_CONNECTOR_PORT=9094 npx ts-node ./src/index.ts serve --configuration=.` +4. Remove `duck.db` and `duck.db.wal` from `.gitignore` if you'd like +5. Create a new DDN project using the duckduckapi connector: ```bash ddn supergraph init new-project ddn connector-link add myapi --configure-host http://local.hasura.dev:9094 --configure-connector-token secrettoken