@evjs/cli 0.0.30 → 0.0.32
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ export async function dev(userConfig, options) {
|
|
|
166
166
|
fs.writeFileSync(bootstrapPath, [
|
|
167
167
|
`const handler = require(${JSON.stringify(serverBundlePath)}).default;`,
|
|
168
168
|
`const { serve } = require("@evjs/server/node");`,
|
|
169
|
-
`serve({ fetch: handler }, { port: ${serverPort}, https: ${JSON.stringify(config.server.dev.https)} });`,
|
|
169
|
+
`serve({ fetch: handler.fetch }, { port: ${serverPort}, https: ${JSON.stringify(config.server.dev.https)} });`,
|
|
170
170
|
].join("\n"));
|
|
171
171
|
const runtimeArgs = [bootstrapPath];
|
|
172
172
|
// Don't await execa here since it's a long-running watch process
|