Skip to content

adriaandotcom/nxchange-nextjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nxchange Next.js app

Just to test Next.js and the easy of use.

Deployment

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.

Screenshots

Screenshot

Browser

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

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:

Screenshot

Maybe this is due to translations which are loading only after a full app reload?

SWR

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.

Next.js telemetry

Just run npx next telemetry disable if you want to disable telemetry.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published