Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.
Quasar SSG Development
Use this skill with quasar-development; apply SSR-safe coding practices during generation.
Configure generation
- Inspect
quasar.config.* > ssg,src-ssg/, router definitions, data sources, and deployment target. - Read the current Quasar SSG documentation.
- Add the mode with
quasar mode add ssg. - Run with
quasar dev -m ssg; generate withquasar build -m ssg.
Make output complete and deterministic
- Ensure every public dynamic route is discoverable by the SSG renderer or supplied explicitly.
- Fetch build-time content deterministically and fail clearly when required content cannot be generated.
- Avoid browser globals while rendering; delay client-only integrations until hydration.
- Generate canonical URLs, titles, descriptions, social metadata, and structured data per route.
- Configure the base/public path for the final host.
- Provide and verify the generated 404 strategy supported by the target host.
- Use hybrid partial CSR only for routes that cannot or should not be generated.
- Treat build-time credentials as secrets and ensure they never appear in emitted HTML or JavaScript.
Validate the generated site
- Inspect the output for all expected route files and metadata.
- Serve the production output from a static server at the intended base path.
- Test direct navigation, refresh, hydration, internal links, asset paths, and the 404 page.
- Check for broken links and accidental secret or private-data serialization.
- Run tests, typecheck, lint, and formatting checks.

