@guren/plugin-vercel 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +14 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60,7 +60,20 @@ function buildVercelOutput(options = {}) {
60
60
  )
61
61
  );
62
62
  const result = Bun.spawnSync({
63
- cmd: ["bun", "build", entrypoint, "--outdir", funcDir, "--target", "bun", "--minify"],
63
+ // `bun build` inlines `process.env.NODE_ENV` at bundle time (defaulting to
64
+ // "development"), so pin it to "production" for the deployed function.
65
+ cmd: [
66
+ "bun",
67
+ "build",
68
+ entrypoint,
69
+ "--outdir",
70
+ funcDir,
71
+ "--target",
72
+ "bun",
73
+ "--minify",
74
+ "--define",
75
+ 'process.env.NODE_ENV="production"'
76
+ ],
64
77
  cwd: root,
65
78
  stdout: "inherit",
66
79
  stderr: "inherit"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guren/plugin-vercel",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {