Skip to content

Commit

Permalink
[docs] update README to avoid process.env.NODE_ENV (#7480)
Browse files Browse the repository at this point in the history
closes #7417
  • Loading branch information
Rich-Harris committed Nov 3, 2022
1 parent 9510139 commit 7903040
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/little-seahorses-argue.md
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-static': patch
---

Update README
2 changes: 1 addition & 1 deletion packages/adapter-static/README.md
Expand Up @@ -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 = {
Expand Down

0 comments on commit 7903040

Please sign in to comment.