@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.
- package/dist/index.js +14 -1
- 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
|
-
|
|
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"
|