gatsby-uc/gatsby-plugin-s3

Direct links (and page refreshes) do not work

linfordbacon-ngenius opened this issue · 0 comments

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?