Unifying site config with powerful and flexible APIs, for module authors and users.
Status: Released Please report any issues π Made possible by my Sponsor Program π Follow me @harlan_zw π¦ β’ Join Discord for help |
Site config can be considered config that is commonly used amongst modules but is not supported by the Nuxt core.
For example: url
(canonical), name
, description
, indexable
, trailingSlash
, titleSeperator
, etc.
Without a single source of truth for these, modules have a hard time working together and end-users have to duplicate config across modules.
Nuxt Site Config aims to fix this.
The end goal is to make it possible to build SEO multilingual / multi-tenancy sites that just work with modules.
- π Zero-config, best practice site config defaults
- π¨ Site config from any source: Nuxt Config, Runtime Config, Environment Variables, App Config, Route Rules or Programmatically
- π Powerful and runtime agnostic APIs for module authors
useSiteConfig
,createSitePathResolver
,withSiteUrl
,useNitroOrigin
, etc - π€ Ledger capabilities
- β Safe fallbacks with runtime assertions (wip)
- π Build Multi-lingual Multi-tenancy sites (soon)
π Read the full documentation for more information.
MIT License Β© 2023-PRESENT Harlan Wilton