diff --git a/package.json b/package.json index cf09e69..3e85b8e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "webpack", "dev": "wrangler -c wrangler.dev.toml dev", "publish-dev": "wrangler -c wrangler.dev.toml publish", - "publish-prod": "NODE_ENV=production wrangler -c wrangler.prod.toml publish", + "publish-prod": "BUILD_ENV=production wrangler -c wrangler.prod.toml publish", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "PeterCxy", diff --git a/webpack.config.js b/webpack.config.js index dc559a9..2290d88 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { fallback: { "os": false }, alias: { config: path.resolve(__dirname, - process.env.NODE_ENV == "production" ? "config.prod.json" : "config.json") + process.env.BUILD_ENV == "production" ? "config.prod.json" : "config.json") } }, module: {