404 (Not Found) index page when building multi-tenant app
See original GitHub issue🐛 Bug Report
I’m building a multi-tenant Next.js app. After adding next-i18next
into the mix, the homepage (index page) started ending on 404 Not Found. All other pages work just fine, only index page gets 404. When I comment out next-i18n
(the config in next.config.js
in particular) everything starts just working again. See the prepared bug reproduction below
To Reproduce
Here I’ve prepared a minimal reproducible example of this problem.
Expected behavior
The index
(home) page should load ok even with next-i18next
.
Your Environment
- runtime version: node v14.18.3
- next-i18next version: 12.1.0
- next.js version: 13.0.3
- os: MacOS
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
404 Not Found When loading non tenant website. #373 - GitHub
When I try to access test.com I get: Sorry, the page you are looking for could not be found. ... Route::get('/', function ()...
Read more >http status code 404 - Error handling for applications in aem
First step is to have correctly setup the error handler, where in you are setting proper error code in the response status. Sample...
Read more >Return a 404 page for tenant not found #9425 | Support Center
I have written a customised DomainTenantResolveContributor which works just fine. It allows me to access the host via admin.
Read more >How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
The Error 404 Not Found status code indicates that the origin server did not find the target resource. Check out these common causes...
Read more >Multi-tenant ASP.NET Core app - tenant resolution - brokul.dev
A multitenancy is a way to handle multiple tenants on a common infrastructure. ... If the tenant is not found, the app returns...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m not saying you have to remove the config, I’m only saying, this issue is most probably not caused by next-i18next but by the Next.js i18n routing feature => https://nextjs.org/docs/advanced-features/i18n-routing
😅 ohhh… I see, now I get it. Well, thanks again 😃