SSG,SSR,RSC,RCCの動作を確認するためのリポジトリ。
コードはこちらを参考にさせていただいています。 【Next.js】App RouterはAWS Amplify Hostingに何をもたらすのか?
npm install
npm run build
npm run start
ローカルで立ち上がります。
以下のコマンドでOpenNextを使用したAWS向けのビルドが出来ます。
npx open-next build
openNext+SSTを使用したデプロイ方法になります。
AWSからクレデンシャルを払い出しておくこと。
またはAWS_ACCESS_KEY_ID
とAWS_SECRET_ACCESS_KEY
を環境変数で渡してあげる
npx sst deploy
- 実行することでAWS上に自動的にサービスが構成されます。
./.sst
- OpenNextを使用したAWS向けのビルドが行われます。
./.open-next
- CloudFormationで管理可能。