404 not found on accessing root (index.html)
See original GitHub issueDescribe the bug Hey guys,
I’m gonna be honest with you, I just started playing with AWS for 2 months. Still very new to everything, so probably its just a dumb mistake (sorry!).
Came across this repo and tried to deploy 1 today. Really love the work!
I’m not sure if this is a bug that’s been fixed, but I think I choose a stable version of your version (not the alpha one)
# serverless.yml
myApp:
component: "@sls-next/serverless-component@1.15.1"
To Reproduce All I did was serverless deploy, and boom when I go to my cloudfront link, it just shows 404 page not found.
Checked the lambda for routing and it looks fine, I’m just creating a simple few pages app. But the static-pages/index.html
is there in s3 but doesn’t seem to route there.
api/api1.js
works though. So i’m not sure what’s happening with my pages. Any help would be appreciated
Cheers guys
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top GitHub Comments
This should be fixed now in
@sls-next/serverless-component@1.16.0
🎉Ah i got it now
After downgrading to next
v9.4.4
I realise that the index.html page is moved topublic/index.html
instead ofstatic-pages/index.html
Thus this line won’t work. Still doesn’t answer why root url doesn’t get logged though. Just went pass through it straightaway