我正在尝试用amplify设置我的移动应用程序,在我第一次运行amplify configuration之后,它会提示我缺少插件。 The following official plugins are missing or inactive:
awscloudformation: provider | amplify-provider-awscloudformation@4.33.0
analytics: category | amplify-category-analytics@2.19.1
api: category | amplify-category-api@2.27.0
auth:
当在dynamodb后端中使用AWS扩容时,可以通过在本地修改文件然后执行AppSync来更新amplify push模式和解析器。
我正在使用RDS (如文档中所描述的那样,它是用amplify api add-graphql-datasource添加的)。查询和解析器在AppSync中自动设置。当我更新Aurora模式时,我再次运行amplify api add-graphql-datasource来更新查询和解析器。
但是,如何添加新的查询/突变并将它们绑定到新的解析器(在本地主机上的vtl文件中定义)?
我想出了如何通过使用AppSync网络控制台来完成这个任务。我修改模式并在AppS
我已经将RDS MySQL数据存储添加到appsync中,如下所示:
hutber@hutber:/var/www/unsal.co.uk$ amplify api add-graphql-datasource
Using datasource: Aurora Serverless, provided by: awscloudformation
? Provide the region in which your cluster is located: eu-west-2
? Select the Aurora Serverless cluster that will be used as t
React项目将托管在Firebase托管服务上。我按照指示成功地部署了我想要的版本。它还问我是否想将这个项目与结合起来。这意味着它将pull我的项目的main分支和merge (自动部署)到防火墙,构建并完成部署。
这里的问题是,React文件夹位于./frontend目录中,而不是根目录中。出现的第一个错误是:
Verifying firebase.json exists
Error: firebase.json file not found. If your firebase.json file is not in the root of your repo, edit the e
在托管预部署脚本期间,我试图运行npm构建。
如果我要从命令行运行构建,我可以成功地运行以下命令:
set NUXT_ENV_GCLOUD_PROJECT=whatever&&npm run build
而且效果很好。但是,当我在下面的firebase.json文件中尝试相同的内容时,它只是跳过了构建:
{
"hosting": {
"predeploy": ["set NUXT_ENV_GCLOUD_PROJECT=whatever&& npm run build"],
}
}
> fire
我只能通过托管来部署文件,这很好,但是我尝试使用firebase函数,它说:
Welcome
Firebase Hosting Setup Complete
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!
OPEN HOSTING DOCUMENTATION
我的index.js代码是这样写的:
const functions = require('firebase-