无服务器函数渲染代码而不是执行
因此,我今天试图托管无服务器功能。 首先,我尝试了vercel,/api/index.js 它在DEV中工作正常,但是一旦我部署了它,就开始发送代码以响应,而不是执行文件并按照其中的规定发送响应。
因此,现在我正在尝试Netlify,但这里也没有运气。 态 响应
So I was trying to host a serverless function today.
First I tried Vercel, /api/index.js
And it was working fine in dev but as soon as I deployed it it started sending the code in response instead of executing the file and sending response as stated in it.
So now I'm trying Netlify but no luck here either.
/functions/tweet.js
the response
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论