使用 CDK 部署 Amplify 应用程序时,如何指定 monorepo 的分支文件夹?
How can I specify a branch folder of a monorepo when deploying an Amplify app using the CDK?
目前使用aws控制台很简单:
但是我找不到使用 CDK 的方法。
这可以与环境变量一起添加:
AMPLIFY_MONOREPO_APP_ROOT
https://docs.aws.amazon.com/amplify/latest/userguide/environment-variables.html
AMPLIFY_MONOREPO_APP_ROOT
The path to use to specify the app root of a monorepo app, relative to
the root of your repository.
apps/react-app
AMPLIFY_MONOREPO_APP_ROOT 环境变量的值必须与构建规范中的 appRoot 键值相同。 –
目前使用aws控制台很简单:
但是我找不到使用 CDK 的方法。
这可以与环境变量一起添加: AMPLIFY_MONOREPO_APP_ROOT
https://docs.aws.amazon.com/amplify/latest/userguide/environment-variables.html
AMPLIFY_MONOREPO_APP_ROOT
The path to use to specify the app root of a monorepo app, relative to the root of your repository.
apps/react-app
AMPLIFY_MONOREPO_APP_ROOT 环境变量的值必须与构建规范中的 appRoot 键值相同。 –