79073047

Date: 2024-10-10 06:51:56
Score: 3.5
Natty:
Report link

i have same problem but you can try to edit amplify.yml in build settings, for example if you use npm

version: 1
frontend:
  phases:
    preBuild:
      commands:
        - npm ci
    build:
      commands:
        - echo "NEXT_NOTION_MARKETING_DATABASE_ID=$NEXT_NOTION_MARKETING_DATABASE_ID" >> .env
        - echo "NEXT_NOTION_BUSINESS_DATABASE_ID=$NEXT_NOTION_BUSINESS_DATABASE_ID" >> .env
        - npm run build
  artifacts:
    baseDirectory: .next
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*
      - .next/cache/**/*

this works like a charm, and you can try the docs from aws amplify environtment

Reasons:
  • Blacklisted phrase (1): i have same problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): i have same problem
  • Low reputation (1):
Posted by: kimchi