We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc53fa6 commit 737010eCopy full SHA for 737010e
index.js
@@ -73,6 +73,10 @@ const stop = async () => {
73
74
// 导出 start 和 stop 方法
75
export {start, stop};
76
+export default async function handler(req, res) {
77
+ await fastify.ready()
78
+ fastify.server.emit('request', req, res)
79
+}
80
81
// 判断当前模块是否为主模块,如果是主模块,则启动服务
82
const currentFile = path.normalize(fileURLToPath(import.meta.url)); // 使用 normalize 确保路径一致
0 commit comments