question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 10 months ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adraicommented, Nov 11, 2022

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

0reactions
patrik-simunic-czcommented, Nov 11, 2022

😅 ohhh… I see, now I get it. Well, thanks again 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found