npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
npm run build
# or
yarn build
Before you start with deployment you will need to complete below steps:
- Setup AWS CLI on your system, follow AWS Official Guide for the setup
- Setup S3 bucket on AWS. Steps are mentioned in S3 setup guide
- After you have setup the S3 modify the bucket name in package.json file under deploy script
- Run the production build as mentioned above
Once above steps are done run below command to deploy your code on AWS S3.
npm run build
# or
yarn build
Once deployment is done replace the bucket name in below URL and navigate to the same to see your website: http://your-bucket-name.s3-website-us-east-1.amazonaws.com/