diff --git a/amplify.yml b/amplify.yml index 9c464c2..e75547b 100644 --- a/amplify.yml +++ b/amplify.yml @@ -1,10 +1,4 @@ version: 1 -backend: - phases: - build: - commands: - - npm ci --cache .npm - - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: preBuild: diff --git a/amplify/backend.ts b/amplify/backend.ts index aeab652..af6aac2 100644 --- a/amplify/backend.ts +++ b/amplify/backend.ts @@ -1,18 +1,11 @@ -import { defineBackend, secret } from '@aws-amplify/backend'; +import { defineBackend } from '@aws-amplify/backend'; import { auth } from './auth/resource'; import { data } from './data/resource'; /** * @see https://docs.amplify.aws/react/build-a-backend/ to add storage, functions, and more */ -const backend = defineBackend({ +defineBackend({ auth, data, }); - -// Define secrets that will be available as environment variables -backend.addOutput({ - custom: { - YOUTUBE_API_KEY: secret('YOUTUBE_API_KEY'), - }, -});