From 79030401ecad1f4daaff8e6d3e7ff6022d5c5c78 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 3 Nov 2022 10:29:05 -0400 Subject: [PATCH] [docs] update README to avoid process.env.NODE_ENV (#7480) closes #7417 --- .changeset/little-seahorses-argue.md | 5 +++++ packages/adapter-static/README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/little-seahorses-argue.md diff --git a/.changeset/little-seahorses-argue.md b/.changeset/little-seahorses-argue.md new file mode 100644 index 000000000000..fb1c0d47af67 --- /dev/null +++ b/.changeset/little-seahorses-argue.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/adapter-static': patch +--- + +Update README diff --git a/packages/adapter-static/README.md b/packages/adapter-static/README.md index 8da5c9dbfa8f..f5aa6bd832dd 100644 --- a/packages/adapter-static/README.md +++ b/packages/adapter-static/README.md @@ -162,7 +162,7 @@ You will have to prevent GitHub's provided Jekyll from managing your site by put A config for GitHub Pages might look like the following: ```js -const dev = process.env.NODE_ENV === 'development'; +const dev = process.argv.includes('dev'); /** @type {import('@sveltejs/kit').Config} */ const config = {