Nextplate is a free starter template built with Next.js and TailwindCSS. It provides you with almost everything you need to jump-start your Next.js project. Try Nextplate and save yourself hours of work.
Hi I'm pretty new to Nextjs and I loved the boilerplate, just got a couple of questions on how it works.
I was under the impression the idea behind this template is that it's a template for a static site (or at least supports SSG), however it seems like because of the use of fs in lib/contentparser.ts and the way that it is pulling the files at render time not build time is forcing this to be rendered server side rather than rendering the html at build time.
Module not found: Can't resolve 'fs'
> 1 | import fs from "fs";
2 | import matter from "gray-matter";
3 | import { notFound } from "next/navigation";
4 | import path from "path";
Is this correct functionality or have I read something wrong when going through the code?
I noticed the tag static-site was used so it was surprising for it not to automatically output html/css after build.
It would be awesome for this functionality to support SSG as well as SSR, as it seems SSR for what is effectively Markdown seems a little overkill.
Hi I'm pretty new to Nextjs and I loved the boilerplate, just got a couple of questions on how it works.
I was under the impression the idea behind this template is that it's a template for a static site (or at least supports SSG), however it seems like because of the use of
fs
inlib/contentparser.ts
and the way that it is pulling the files at render time not build time is forcing this to be rendered server side rather than rendering the html at build time.Is this correct functionality or have I read something wrong when going through the code?
I noticed the tag
static-site
was used so it was surprising for it not to automatically output html/css after build.It would be awesome for this functionality to support SSG as well as SSR, as it seems SSR for what is effectively Markdown seems a little overkill.