hello so I was looking at the guide and trying out some code but still do not understand how to do static site rendering, so say I have 3 pages, home, about and contact page, is it I have to do runSSR to get text content of those pages, and since runSSR seems to output the content with body tag, I would have to put them into html block with appropriate headers and stuff and then use writeFileText from Node.FS.Sync to write them to dist/[page]/index.html?
and how does the Main.purs looks like and usage with vite in development , is it able to run code with writeFileText since it is not available in browser environment
hello so I was looking at the guide and trying out some code but still do not understand how to do static site rendering, so say I have 3 pages,
home
,about
andcontact
page, is it I have to dorunSSR
to get text content of those pages, and sincerunSSR
seems to output the content withbody
tag, I would have to put them intohtml
block with appropriate headers and stuff and then usewriteFileText
fromNode.FS.Sync
to write them todist/[page]/index.html
?and how does the
Main.purs
looks like and usage withvite
in development , is it able to run code withwriteFileText
since it is not available in browser environment