- Run the app
npm run dev - Open the root page
http://localhost:3000and you'll get 404 (Not Found) - Open a different page
http://localhost:3000/worksand 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:3000and you'll get 404 (Not Found) - Open a different page
http://foo.localhost:3000/worksand the page (including translation) loads just fine
- Comment out the
i18nfromnext.config.js - Comment out
appWithTranslationfrompages/_app.tsx - Comment out translations from pages
pages/web/[tenant]/index.tsxandpages/web/[tenant]/works.tsx - Commnet out
...(await serverSideTranslations(locale, [ 'common' ]))from getStaticProps within the same pages