components
components copied to clipboard
The example for website component does not work as expected
Description
OS: Linux
Serverless version: Components version 2.34.9
I am trying to use website
component following this instructions here: https://github.com/serverless/components#simplicity
Steps:
-
Run
npx serverless init react-starter
-
Run
cd react-starter
-
Update config for
serverless.yml
file
Here is my serverless.yml
file:
app: react-starter
name: react-starter
component: website
inputs:
src:
src: ./src
hook: npm run build
dist: ./dist
env:
# environment variables to pass to the website build environment
REACT_APP_API_URL: https://google.com
domain:
mydomain.com
After few minutes from running serverless
, I use my cloudront domain name (for example: https://abcdefgh.cloudfront.net/) to access it
But I can not use my own domain (for example: mydomain.com
) to access it
Additional Data
-
I use domain from Amazon
-
Here is the image of this problem when accessing from browser when typing
mydomain.com
:
Any updates on this issue? I also cannot access my website via my domain. Looks like not Route53 entries were created during the deploy
@AnatoliiStepaniuk it seems we need to wait for ACM to create new certificate, you can try to run again and it will work!