From 2806868e8bdf3d617d4b31426b1a2ac5d024b385 Mon Sep 17 00:00:00 2001 From: Jonathan Nagayoshi Date: Mon, 28 Oct 2024 14:47:14 -0500 Subject: [PATCH] docs(templates): adds default value to NODE_OPTIONS Signed-off-by: Jonathan Nagayoshi --- docs/features/software-templates/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/software-templates/index.md b/docs/features/software-templates/index.md index e12e738e72..8018b76d91 100644 --- a/docs/features/software-templates/index.md +++ b/docs/features/software-templates/index.md @@ -25,7 +25,7 @@ locations like GitHub or GitLab. If you're running Backstage with Node 20 or later, you'll need to pass the flag `--no-node-snapshot` to Node in order to use the templates feature. One way to do this is to specify the `NODE_OPTIONS` environment variable before starting Backstage: -`export NODE_OPTIONS="$NODE_OPTIONS --no-node-snapshot"` +`export NODE_OPTIONS="${NODE_OPTIONS:-} --no-node-snapshot"` > It's important to append to the existing `NODE_OPTIONS` value, if it's already set, rather than overwriting it, since some NodeJS Debugging tools may rely on this environment variable to work properly.