GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing nullstack.app — Static Site Generation - Nullstack Static Site GenerationUse Nullstack to generate static websites for lightning-fast static applications using the full power of the Nullstack client without the need for a node.js back-end. Static sites are useful for read-only applications like blogs and documentation.
All the benefits of server-side rendering apply to static generated sites. You can generate a static website from your Nullstack application with the following
By default, it will create your static application in the ssg folder you can override this with the The builder will run your application in production mode and crawl every The manifest.json and the contents of the public folder will be copied into the target folder. Besides generating raw HTML it will also generate a JSON file for each route with a copy of the state. On the first visit to your static application, HTML will be served and hydrated. On the subsequent requests, Nullstack will fetch the generated JSON and update the application state without ever reloading the page. This, in fact, gives you not only a static generated site, but a static generated API with the calculated state that feeds a Single Page Application with zero costs. Good PraticesYou can add a script to your package.json to generate your static website in a custom folder:
CaveatsBefore generating the HTML, Nullstack will wait for You can mix modes and request further server functions by pointing Nullstatic will crawl a "/404" URL and generate both a "/404.html" and a "/404/index.html". Next Step➡️ Learn more about Build Modes: Single page applications❓ Have any questions or suggestions? Join our Discord |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |