简体   繁体   English

NextJS API AWS Amplify 上的路由

[英]NextJS API routes on AWS Amplify

Apologies if this is a dumb question but where are the API routes in a next JS application deployed to AWS Amplify hosted?抱歉,如果这是一个愚蠢的问题,但是下一个 JS 应用程序部署到托管的 AWS Amplify 中的 API 路由在哪里?

I know that Amplify supports backends, but generally I'm explicitly writing an express server or something.我知道 Amplify 支持后端,但通常我明确地编写一个快速服务器或其他东西。 Since the next JS routes are serverless, does that mean that Amplify is deploying them as lambda functions behind the scenes?由于下一个 JS 路由是无服务器的,这是否意味着 Amplify 将它们部署为 lambda 功能在幕后?

You are right, Amplify deploys them as Lambda@Edge functions.没错,Amplify 将它们部署为 Lambda@Edge 函数。 Source . 来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM