Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The example for website component does not work as expected #849

Open
bugb opened this issue Dec 9, 2020 · 2 comments
Open

The example for website component does not work as expected #849

bugb opened this issue Dec 9, 2020 · 2 comments

Comments

@bugb
Copy link

bugb commented Dec 9, 2020

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

@AnatoliiStepaniuk
Copy link

Any updates on this issue? I also cannot access my website via my domain. Looks like not Route53 entries were created during the deploy

@bugb
Copy link
Author

bugb commented Dec 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants