Amplify preview framework is wrong

0

Hello,

By default, the PR preview branch is set with "framework": "Next.js - SSR". I want it to be "framework": "Next.js - SSG".

Is there any environment variable that fixes this?

Thanks.

  • Ajit
Secfi
質問済み 1年前246ビュー
1回答
0
承認された回答

Hi Ajit,

Kindly note that preview will be generated on the basis of App framework. If the App framework is set to Next.js SSR and you would like preview to be Next.js SSG, then it's not possible. The configuration of app branches and PR branches needs to be the same.

However, if the requirement is to set both app branches and PR to be Next.js SSG, then please ensure that the Amplify app framework is set correctly for Next.js SSG and the build settings is correctly specified. The framework is detected based on the package.json file as mentioned here.

In case the Amplify app is a Next.js SSR app, you may refer to the steps described here to convert the SSR app to SSG. Once the app framework is set correctly, try making a PR again.

Having said that, in case you face further challenges, please feel free to open a support case with AWS using the following link for resource specific guidance.

AWS
サポートエンジニア
Mukul_V
回答済み 1年前
  • Ah, ok. That makes sense. Thanks for your answer, Mukul.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ