components icon indicating copy to clipboard operation
components copied to clipboard

The example for website component does not work as expected

Open bugb opened this issue 3 years ago • 2 comments

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

image

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:

image

bugb avatar Dec 09 '20 19:12 bugb

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 avatar Dec 20 '20 19:12 AnatoliiStepaniuk

@AnatoliiStepaniuk it seems we need to wait for ACM to create new certificate, you can try to run again and it will work!

bugb avatar Dec 25 '20 10:12 bugb