Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Generate your pages statically without using payload extractors.
Nuxt Page Generator Helper is a Nuxt.js module by Grabarz & Partner that generates static Vue pages from adapter-provided route, page, and layout data, so a site can be built without a payload-extractor, and embeds components with targeted, chunk-splitting-friendly integration.
Nuxt Page Generator Helper is an npm-published, MIT-licensed Nuxt.js module created by Grabarz & Partner. It takes an adapter (a file path or import with functions for querying the page structure with content) plus adapter options that supply the getRoute, getRoutes, and getLayout calls and the PATH specification, and it produces generated Vue pages during nuxt build and nuxt generate. The module runs inside the Nuxt.js ecosystem and automatically includes nuxt-i18n and @nuxtjs/sitemap, so those packages must not be installed separately.
nuxtI18n option; if unused, it should be limited to one default locale.sitemap option that supports path, hostname, cacheTime, gzip, exclude, routes, and defaults such as changefreq, priority, and lastmodrealtime.lazyHydrateEnable, lazyHydrateRootMargin (default 80px), and lazyHydrateMaxIdle (default 1) options that defer component initialization until idle or until components approach the visible area.asyncComponentLoad defaults to true, so page components are loaded asynchronously to support better chunk splitting.$getGeneratorRouteData, $getGeneratorLayoutData, and $getGeneratorOptions in both client and server contexts, with documented usage in page asyncData and in the store's nuxtServerInit.ignoreRoutes, cleanRoutes, routesCache, and layoutCache decide which route names are skipped, whether previously registered routes are removed, and whether adapter results are cached locally.local-json adapter in the example directory for working with local JSON files.nuxt generate to output static pages.nuxt.config.js with an adapter, adapter options, and ignoreRoutes, then run nuxt build or nuxt generate to produce the Vue pages.$getGeneratorRouteData() inside a page's asyncData hook to retrieve data for the current route through the adapter's getRoute method.$getGeneratorLayoutData() in the store's nuxtServerInit action, or in a page fetch hook during development, to pull data through the adapter's getLayout method.asyncComponentLoad and lazyHydrateEnable so components initialize when idle or when close to the visible area, with lazyHydrateMaxIdle limiting how many initialize on idle.The module is added to the modules array of nuxt.config.js with an adapter and options. During nuxt build or nuxt generate, it queries the adapter's getRoutes, getRoute, and getLayout calls to assemble page and layout data, generates the Vue pages, and extends the router's routes while honoring ignoreRoutes. In development mode (nuxt), page generation is skipped and dynamicContent defaults to true so content is reloaded dynamically instead.
No. The README carries a notice that the project is no longer maintained. The source remains available on GitHub and npm under the MIT License, and the example adapter plus adapter documentation can still be used as a reference.
Yes, the module is released under the MIT License.
nuxt-i18n is a core component of the module and must not be included separately. All of its settings are passed through the module's nuxtI18n option, including locales, defaultLocale, parsePages, strategy, and vueI18n messages.
Per the module's build matrix, Vue pages are generated during nuxt build and nuxt generate. The plain nuxt development command and nuxt start do not generate Vue pages.
