Skip to main content

Hosting : Deploy Bakery Application

Published 1 min readMarkdown
Part of seriesBuild with AWS Amplify
Hosting : Deploy Bakery Application

Build locally first

npm run build

Fix errors if any, Once we're able to build locally, we can connect our github repo branch to amplify, so that it'll automatically build.

Goto project in Amplify on AWS Console,

Give github permissions to your repo and select it.

Go to Advanced settings, and add the below environment Variables, Click Next

AMPLIFY_FACEBOOK_CLIENT_SECRET, AMPLIFY_FACEBOOK_CLIENT_ID,
AMPLIFY_GOOGLE_CLIENT_ID,
AMPLIFY_GOOGLE_CLIENT_SECRET

Add a custom domain with a free SSL certificate

You need to add the CNAME record to your domain, we'll use a subdomain here, If your domain is registered using AWS Route 53, It'll automatically do the SSL Congiguration

i.e. https://www.bakery.vishnupatekar.com

Now we just need to create a CNAME record for subdomain and redirect it to cloudfront URL.

bakery CNAME d3g1ldgx3o2or8.cloudfront.net

Let's goto Route 53 and add the CNAME record.

Wait for a few minutes, if your build was successful, you should be able to see our web app front page

https://bakery.vishnupatekar.com/

About the author

No comments yet. Be the first to comment.

Build with AWS Amplify

Part 4 of 4

What : Build an Web Application for a Bakery with User Journey Why : Need to Track Users and Page Visits, interact with Users How : Using Amplify, NextJS, Analytics, more servic

Start from the beginningCreate a NextJS project for our BakeryWe would like to build a NextJS App from scratch for our Bakery.