You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer moving from Nextjs that is used to static site generation, it would be nice to be able to use SSG in my remix app
Suggested solution
Create a vite plugin that can do SSG for you when you run npm run build
Background context
One of the questions i hear alot about remix is that if can do static site generation.
For folks wanting to use remix to build marketing sites, homepage's or even blog's, this could be a useful.
Useful for environments that where you can't or are not allowed to easily provision your own server and only have access to pushing static files to server/CDN
Alternative
Manual Approach
The alternative is setting this up manually by writing your own script
For example. create script that will:
start your remix app
then have your crawler in your script, visit a list of urls in your app (AKA your static pages) get the HTML output
save the HTML output from visiting the page to a public or static directory
...
More details on a basic implementation for conceptual purposes
Description
As a developer moving from Nextjs that is used to static site generation, it would be nice to be able to use SSG in my remix app
Suggested solution
Create a vite plugin that can do SSG for you when you run
npm run build
Background context
One of the questions i hear alot about remix is that if can do static site generation.
For folks wanting to use remix to build marketing sites, homepage's or even blog's, this could be a useful.
Useful for environments that where you can't or are not allowed to easily provision your own server and only have access to pushing static files to server/CDN
Alternative
Manual Approach
The alternative is setting this up manually by writing your own script
For example. create script that will:
public
orstatic
directoryMore details on a basic implementation for conceptual purposes
Vite plugin approach
Validations
The text was updated successfully, but these errors were encountered: