1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
1
Hello,
Thank you for reaching out to us.
Please follow below steps as mentioned in the link [1] :
-
Please run AWS CLI commands to overwrite how Amplify detects the framework:
aws amplify update-app --app-id <APP_ID> --platform WEB --region <REGION> aws amplify update-branch --app-id <APP_ID> --branch-name <BRANCH_NAME> --framework 'Next.js - SSG' --region <REGION>
-
Then update build spec to point the baseDirectory to out. e.g.
version: 1 frontend: ... artifacts: baseDirectory: out ...
-
Update the build command in your package.json to use next export, then commit this to trigger a new non-SSR build.
-
Finally, go to the "Rewrites and redirects" tab in the Amplify console, and delete the first rewrite rule that was re-writing to their SSR CloudFront distribution.
References:
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 3 meses
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos