最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - simple gatsby api function but got Error executing Gatsby Function - Stack Overflow

programmeradmin1浏览0评论

The following simple codes got: Error executing Gatsby Function. It works fine on my local environment. Could you anyone point if there are simple errors? Thanks!

import { GatsbyFunctionRequest, GatsbyFunctionResponse } from "gatsby"

export default async function handler(
    req: GatsbyFunctionRequest,
    res: GatsbyFunctionResponse
): Promise<void> {
res.json(req.headers)
return Promise.resolve()
}
发布评论

评论列表(0)

  1. 暂无评论