Just to test Next.js and the easy of use.
I tried to deploy this to now.sh. It seems next-i18next is not ready for it yet (#577, #274). Not sure how deployment goes with our current server, it might be easier or more complicated. I don't know.
Don't use Firefox, it does not work well with reloading. No idea why. Hopefully it doesn't impact production. Development works fine in Google Chrome.
Translations work within this app. It uses isaachinman/next-i18next. It has two down sides. It does not do translations in (dynamic) routes and it does not translate error pages. This last issue is because Next.js does not support that.
As mentioned above with deployment it does not work well with this (or any) translations library because of limitations of Next.js. Also sometimes the reloader does reload without some translations:
Maybe this is due to translations which are loading only after a full app reload?
The name “SWR” is derived from stale-while-revalidate
, a HTTP cache invalidation strategy popularized by RFC 5861. It's quite cool to use and have some caching in it which load the same data not twice. This means it's faster with navigation. You still need to use it with axios or fetch.
Just run npx next telemetry disable
if you want to disable telemetry.