diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index aeecb396..75be088e 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -3,6 +3,7 @@ on: push: branches: - develop + - 82_update_deployment_with_next_auth_vars # Concurrency group name ensures concurrent workflow runs wait for any in-progress job to finish concurrency: @@ -17,7 +18,9 @@ jobs: runs-on: ubuntu-latest environment: staging env: - PLATFORM: ${{ vars.PLATFORM }} + ENV: ${{ vars.ENV }} + NEXTAUTH_URL: ${{ vars.NEXTAUTH_URL }} + NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} steps: - name: Git clone the repository uses: actions/checkout@v3 diff --git a/apps/envited.ascs.digital/common/auth/auth.ts b/apps/envited.ascs.digital/common/auth/auth.ts index df3151c5..3ce33ef0 100644 --- a/apps/envited.ascs.digital/common/auth/auth.ts +++ b/apps/envited.ascs.digital/common/auth/auth.ts @@ -12,12 +12,7 @@ export const authOptions: NextAuthOptions = { }, providers: [ CredentialsProvider({ - // The name to display on the sign in form (e.g. 'Sign in with...') name: 'Sign in with Your Credentials', - // The credentials is used to generate a suitable form on the sign in page. - // You can specify whatever fields you are expecting to be submitted. - // e.g. domain, username, password, 2FA token, etc. - // You can pass any HTML attribute to the tag through the object. credentials: { pkh: { label: 'Address', type: 'text', placeholder: 'tz...' }, }, diff --git a/apps/envited.ascs.digital/stacks/Envited.ts b/apps/envited.ascs.digital/stacks/Envited.ts index 3d598a90..bbf6ff8f 100644 --- a/apps/envited.ascs.digital/stacks/Envited.ts +++ b/apps/envited.ascs.digital/stacks/Envited.ts @@ -57,6 +57,9 @@ export default function Envited({ stack }: StackContext) { environment: { RDS_SECRET_ARN: rdsCluster.secret?.secretArn || '', REGION: process.env.region || 'eu-central-1', + ENV: process.env.ENV!, + NEXTAUTH_URL: process.env.NEXTAUTH_URL!, + NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET!, }, })