Skip to content

Commit

Permalink
update README to avoid process.env.NODE_ENV - closes #7417
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Nov 3, 2022
1 parent 9510139 commit a0f9959
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-static': patch
---

Update README
2 changes: 1 addition & 1 deletion packages/adapter-static/README.md
Original file line number Diff line number Diff line change
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 a0f9959

Please sign in to comment.