serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.31k stars 181 forks source link

Getting strange error: 28s › Serverless › There's a problem with your files and they could not be loaded by this Component. Original error: Response code 403 (Forbidden) #1006

Open bugb opened 2 years ago

bugb commented 2 years ago

Description

I can not use serverless to deploy.

Additional Data

name: myapp
org: myorg
inputs: # The configuration the Component accepts
  src:
    src: ./src
    hook: npm run build
    dist: ./dist
  domain: mydomain

I have set AWS as my default provider but I can not make it works.

Getting strange error:

28s › Serverless › There's a problem with your files and they could not be loaded by this Component.  Original error: Response code 403 (Forbidden)  

image

julienvallet commented 2 years ago

I had the same problem while using create-react-app, the issue was that the dist folder is set to ./build by default when using CRA.

try changing your dist to: dist: ./build