当我尝试用无服务器框架将我的NextJS应用程序部署到AWS时。
在我的下一个JS目录中,我运行了命令npx serverless
得到了以下错误-
$ npx serverless
error:
Error: Command failed with ENOENT: node_modules/.bin/next build
spawn node_modules/.bin/next ENOENT
'node_modules\.bin\next' is not recognized as an internal or external command,
operable
我已经创建了一个GKE私有集群,其中有一些吊舱。现在,我想将我的吊舱与GCP提供的云功能集成起来。为了实现这一点,我使用Serverless VPC访问,因为我的GKE集群生活在另一个区域的自定义网络上,我的豆荚使用内部负载均衡器。
这似乎是成功的,因为我已经测试过从GCE访问我的荚内部IP的方法,并且测试过从Cloud函数访问我的GCE,但是当我尝试从Cloud函数访问我的荚内部IP时,它总是返回超时。
The HTTP request failed with error %s
Get http://172.16.0.42: dial tcp 172.16.0.42:80: i/o time
我正在尝试建立一个无服务器项目,该项目将托管在Google云平台上。下面是serverless.yml的外观 plugins: # List of plugins of use on application
- serverless-offline # Get your serverless configuration and run the server local
- serverless-plugin-typescript-express
# Project name on the infrastructure created
service: ansaar-auth