COVID-19 is impacting countless small businesses across Canada, we all face uncertainty. Several colleagues and I asked what we could do to help? After a weekend of non-stop coding we’ve put together #CovidImpact, a FREE Small Business Care Package which features: A curated list of programs to help them through the crisis. Real-time news relevant to Canadian ventures Simulation tool to see how their business may be affected across various scenarios depending on how long COVID-19 drags out for. Together, Canadian businesses will get through this by supporting each other! CovidImpact is built in Vue with Javascript, HTML and CSS files. The project utilizes various Bootstrap-Vue components and newsapi.org to get the latest business news. The app is hosted on S3 and uses serverless functions for a mailchimp newsletter.
Currently the website gives access denied on the refresh at covidimpact.ca/financial-aid. This needs to be fixed so that the users can still access the website if they decide to refresh the page
What needs to be done:
Go to Route 53 AWS console
Add a default redirect */ to index.html
index.html lives in an S3 bucket
Figure out how to make the default redirect point to the bucket's index.html
The problem is on the access to covidimpact.ca/financial-aid the request is going to S3 with an object key covidimpact.ca/financial-aid which does not exist in the bucket. Route /financial-aid exists in the virtual DOM and is controlled by VueRouter.
What we can do:
On the access redirect to root / to get the assets from the bucket and then redirect at the virtual DOM level
Remove VueRouter
Research more on Route53, S3, and VueRouter on how to overcome this issue
Overview:
Currently the website gives access denied on the refresh at
covidimpact.ca/financial-aid
. This needs to be fixed so that the users can still access the website if they decide to refresh the pageWhat needs to be done:
index.html
index.html
lives in an S3 bucketindex.html
Criteria of success:
Documentation:
https://aws.amazon.com/premiumsupport/knowledge-center/redirect-domain-route-53/ https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RoutingToS3Bucket.html
Stakeholder:
@NoirKomBatman @albertocevallos