From 0ed05e60aacd8bf64472ec372803eeb397972326 Mon Sep 17 00:00:00 2001 From: Ophelia Goldstein <159258143+opheliagoldstein@users.noreply.github.com> Date: Wed, 8 Oct 2025 20:46:08 +0300 Subject: [PATCH] docs(contributing): add note about NODE_ENV variable to disable caching for local development (#4545) * docs(contributing): add note about NOTE_ENV variable to disable caching for local development * Update CONTRIBUTING.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Alexandr Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- backend/CONTRIBUTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/CONTRIBUTING.md b/backend/CONTRIBUTING.md index 29edbd34..6c6dac1c 100644 --- a/backend/CONTRIBUTING.md +++ b/backend/CONTRIBUTING.md @@ -38,7 +38,8 @@ _(make sure you already have a [Vercel](https://vercel.com/) account)_ 3. Run `npm install` in the repository root. 4. Run the command `vercel` in the root and follow the steps there. 5. Run the command `vercel dev` to start a development server at . -6. The cards will then be available from this local endpoint (i.e. `http://localhost:3000/api?username=anuraghazra`). +6. Create a `.env` file in the root and add the following line `NODE_ENV=development`, this will disable caching for local development. +7. The cards will then be available from this local endpoint (i.e. `http://localhost:3000/api?username=anuraghazra`). > [!NOTE]\ > You can debug the package code in [Vscode](https://code.visualstudio.com/) by using the [Node.js: Attach to process](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_setting-up-an-attach-configuration) debug option. You can also debug any tests using the [VSCode Jest extension](https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest). For more information, see https://github.com/jest-community/vscode-jest/issues/912.