next-right-now-admin icon indicating copy to clipboard operation
next-right-now-admin copied to clipboard

Use SSG instead of SSR

Open Vadorequest opened this issue 5 years ago • 0 comments

Goals

We currently use Server Side Rendering (SSR) to render the app. It actually provides no benefit whatsoever, and was done this way because the NRN boilerplate uses SSR. Also, at the time of creation of the NRN-Admin boilerplate, SSG wasn't officially released yet. See https://nextjs.org/blog/next-9-3

SSR for a react-admin app is completely useless because react-admin itself is frontend-only (it's not a universal module, it cannot be rendered on the server, so we currently only render it on the client anyway).

Using SSG would provide many benefits, and reduce costs. (no API, no serverless function, everything would be static)

Roadmap

  • [ ] Use SSG instead of SSR

Resources:

  • https://nextjs.org/blog/next-9-3#next-gen-static-site-generation-ssg-support

Vadorequest avatar Mar 15 '20 16:03 Vadorequest