Skip to content

Direct links (and page refreshes) do not work #333

@linfordbacon-ngenius

Description

@linfordbacon-ngenius

I've followed the instructions in the deploy to s3 recipe and allowed the plugin to create the bucket from scratch.

But it seems that this plugin deploys all page files as index.html pages within a folder with the page name so

my_page.tsx => my_page/index.html

While this is fine in principle it means that navigating to https://my_host.com/my_page results in

<Error>
   <Code>NoSuchKey</Code>
   <Message>The specified key does not exist.</Message>
   <Key>my_page</Key>
   <RequestId>4CS85R71VWWWZDZ180</RequestId>
   <HostId>
      3gTHCMxGXVjCvC3Dhubtdsfew34zTfEY5W0eBd+ceThMQZwD9fJn2FUl3Gi0+OR5d9Oavmx9W3Digab0Eo=
   </HostId>
</Error>

It doesn't feel like this can be the intended behaviour? Is there something I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions