serverless-components / website

:zap: Instantly deploy static website on serverless infrastructure with zero configuration using Serverless Components.
https://serverless.com
Apache License 2.0
155 stars 49 forks source link

The component is not deploying the website #96

Open tahir-mcloud opened 2 months ago

tahir-mcloud commented 2 months ago

Hello, I ran into this issue where I wanted to deploy a static website but the initial code itself is not working.

Issue:

Here's my config file:

name: api-docs-website # (required) name of your website component instance. stage: dev # (optional) serverless dashboard stage. default is dev.

inputs:
  component: "@serverless/website"
  code:
    root: ./
    src: ./src                     # (optional) path to the source folder. default is a hello world html file.
    # domain: serverless.com         # (optional) domain name. this could also be a subdomain.
  region: us-east-1             # (optional) aws region to deploy to. default is us-east-1.
  bucketName: api-docs-bucket-28-06-2024       # (optional) aws bucket name. default is an auto generated name.

Folder structure:

image

Note: This is the version 1 code, I also tried the latest one, but it's the same