【发布时间】:2021-05-16 12:09:30
【问题描述】:
在the docs 之后,我在控制台中设置了我的环境变量 ($CLIENT_ID)。
在控制台中,我添加了 echo 命令以尝试将变量插入.env。
我不断收到的错误是There was an issue connecting to your repo provider。当我删除 echo 行时,构建通过。我尝试了单引号/双引号,并将该行放在构建命令阶段下的其他行之上/之下。
这是构建过程的后端部分。
backend:
phases:
build:
commands:
- echo 'CLIENT_ID=$CLIENT_ID' >> backend/.env
- '# Execute Amplify CLI with the helper script'
- amplifyPush --simple
【问题讨论】:
-
请查看this question。我想这是你要求的。
标签: environment-variables aws-amplify