- Run the app
npm run dev
- Open the root page
http://localhost:3000
and you'll get 404 (Not Found) - Open a different page
http://localhost:3000/works
and the page (including translation) loads just fine
Same thing happen when visiting the site as a different tenant:
- Open the root page
http://foo.localhost:3000
and you'll get 404 (Not Found) - Open a different page
http://foo.localhost:3000/works
and the page (including translation) loads just fine
- Comment out the
i18n
fromnext.config.js
- Comment out
appWithTranslation
frompages/_app.tsx
- Comment out translations from pages
pages/web/[tenant]/index.tsx
andpages/web/[tenant]/works.tsx
- Commnet out
...(await serverSideTranslations(locale, [ 'common' ]))
from getStaticProps within the same pages