Improve Windows compatibility for npm run analyze

Adding "env" before setting environmental variables makes it cross-platform (i.e. work on Windows in addition to Unix / Mac).

Tested Windows 10 x64
This commit is contained in:
Dr. Derek Austin 2021-03-15 17:39:36 -05:00 committed by GitHub
parent df4f013276
commit d802da0a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
"dev": "next dev",
"build": "next build && node ./scripts/generate-sitemap",
"serve": "next start",
"analyze": "ANALYZE=true next build"
"analyze": "env ANALYZE=true next build"
},
"dependencies": {
"@mapbox/rehype-prism": "^0.5.0",