Skip to content

Commit 7903040

Browse files
authored
[docs] update README to avoid process.env.NODE_ENV (#7480)
closes #7417
1 parent 9510139 commit 7903040

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/little-seahorses-argue.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-static': patch
3+
---
4+
5+
Update README

packages/adapter-static/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ You will have to prevent GitHub's provided Jekyll from managing your site by put
162162
A config for GitHub Pages might look like the following:
163163

164164
```js
165-
const dev = process.env.NODE_ENV === 'development';
165+
const dev = process.argv.includes('dev');
166166

167167
/** @type {import('@sveltejs/kit').Config} */
168168
const config = {

0 commit comments

Comments
 (0)