Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 677 Bytes

nextjs.md

File metadata and controls

34 lines (26 loc) · 677 Bytes

NextJS

# 既存のデータベースからデータ型をschema.prismaに反映する
npx prisma db pull
npx prisma generate

Mantine UI

https://mantine.dev/guides/next/

Icon

tabler
heroicons

Build

クライアントサイドレンダリングのみにして、CloudFront + S3にデプロイする場合
1.next.config.mjsに以下を追記

/** @type {import('next').NextConfig} */
const nextConfig = {
  output: 'export', // 追記
};

export default nextConfig;

2.ビルド

npm run build

3.ビルドしたファイル(outディレクトリ)をS3にデプロイ