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

🚀 Fresh Stack Deployment Not Working As Expected #115

Closed
therealsiege opened this issue Dec 30, 2022 · 2 comments
Closed

🚀 Fresh Stack Deployment Not Working As Expected #115

therealsiege opened this issue Dec 30, 2022 · 2 comments

Comments

@therealsiege
Copy link

Have you experienced this bug with the latest version of the template?

yes

Steps to Reproduce

Steps

  1. Create fresh grunge stack using npx.
  2. Connect it to AWS via Github Secrets.
  3. Generate Session and Arc App variables.
  4. Trigger deployment via dev branch.
  5. Access the entry point via the S3 Static Website Hosting URL.

Reference
remix.config.js
assetsBuildDirectory: "public/build", publicPath: "/_static/build/", serverBuildTarget: "arc", server: "./server.ts",

Expected Behavior

🤔 Deployment works, but I'm not seeing the app at the expected URL.

Actual Behavior

The result is a 404 on every route.

404 Not Found

- Code: NoSuchKey
- Message: The specified key does not exist.
- Key: index.html
- RequestId: 164GEDTF7M8N85P2
- HostId: eG7ra0vK8XxFS9FrsYCCttfYBIdIyD0NywlVaKaVmrKmxDyBWXAO7SQW91VIuDUzsBxnn7AVdwo=

An Error Occurred While Attempting to Retrieve a Custom Error Document

- Code: NoSuchKey
- Message: The specified key does not exist.
- Key: 404.html
@mcansh
Copy link
Contributor

mcansh commented Dec 30, 2022

Access the entry point via the S3 Static Website Hosting URL.

S3 is for the static files (in public directory) only, to access your remix app you'll want to use the api gateway url

@therealsiege
Copy link
Author

💯 That sets me back on the right track!!! I've been working on a SPA for way too long! 🧟‍♂️

Thank you tons!

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