Skip to content

Commit

Permalink
Added: amplify.yml file to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Peco1503 committed Jun 9, 2024
1 parent 549a099 commit dbc8a65
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions amplify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci --cache .npm --prefer-offline
build:
commands:
- npm run build
- echo "NEXTAUTH_SECRET=$NEXTAUTH_SECRET" >> .env
- echo "NEXTAUTH_URL=$NEXTAUTH_URL" >> .env
- echo "JWT_SECRET=$JWT_SECRET" >> .env
- echo "DATABASE_URL=$DATABASE_URL" >> .env
- echo "OPENAI_API_KEY=$OPENAI_API_KEY" >> .env
- echo "GOOGLE_CLIENT_ID=$GOOGLE_CLIENT_ID" >> .env
- echo "GOOGLE_CLIENT_SECRET=$GOOGLE_CLIENT_SECRET" >> .env
- echo "LINKEDIN_CLIENT_ID=$LINKEDIN_CLIENT_ID" >> .env
- echo "LINKEDIN_CLIENT_SECRET=$LINKEDIN_CLIENT_SECRET" >> .env
- echo "NEXT_PUBLIC_TINYMCE_API_KEY=$NEXT_PUBLIC_TINYMCE_API_KEY" >> .env
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- .next/cache/**/*
- .npm/**/*

0 comments on commit dbc8a65

Please sign in to comment.