-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add application key in amplify.yml
- Loading branch information
1 parent
ad74442
commit 07685f3
Showing
2 changed files
with
39 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
strict-peer-dependencies=false | ||
auto-install-peers=true | ||
node-linker=hoisted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,42 @@ | ||
version: 1 | ||
backend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- npm i -g pnpm | ||
- pnpm config set store-dir .pnpm-store | ||
- pnpm i | ||
build: | ||
commands: | ||
- corepack enable | ||
- pnpm config set node-linker hoisted | ||
- pnpm install --frozen-lockfile | ||
- pnpm exec ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID --debug | ||
|
||
frontend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- npm i -g pnpm | ||
- pnpm config set store-dir .pnpm-store | ||
- pnpm i | ||
build: | ||
commands: | ||
- npx ampx generate outputs --branch $AWS_BRANCH --app-id $BACKEND_APP_ID | ||
- pnpm nx build main-web" | ||
- mv .env ./.amplify-hosting/compute/default/.env | ||
applications: | ||
- name: amplify-backend | ||
path: libs/amplify-backend | ||
backend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- npm i -g pnpm | ||
- pnpm config set store-dir .pnpm-store | ||
- pnpm i | ||
build: | ||
commands: | ||
- corepack enable | ||
- pnpm config set node-linker hoisted | ||
- pnpm install --frozen-lockfile | ||
- pnpm exec ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID --debug | ||
|
||
artifacts: | ||
baseDirectory: .amplify-hosting | ||
files: | ||
- '**/*' | ||
- name: main-web | ||
path: apps/main-web | ||
frontend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- npm i -g pnpm | ||
- pnpm config set store-dir .pnpm-store | ||
- pnpm i | ||
build: | ||
commands: | ||
- npx ampx generate outputs --branch $AWS_BRANCH --app-id $BACKEND_APP_ID | ||
- pnpm nx build main-web | ||
- mv .env ./.amplify-hosting/compute/default/.env | ||
|
||
cache: | ||
paths: | ||
- .pnpm-store/**/* | ||
artifacts: | ||
baseDirectory: .amplify-hosting | ||
files: | ||
- '**/*' | ||
|
||
cache: | ||
paths: | ||
- .pnpm-store/**/* |