DanSnow / nuxt-site-config

Unifying site config with powerful and flexible APIs, for module authors and users.

Home Page:https://nuxtseo.com/site-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nuxt-site-config

NPM version NPM Downloads GitHub stars

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

Background

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.

Features

  • 😌 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)

Documentation

πŸ“– Read the full documentation for more information.

License

MIT License Β© 2023-PRESENT Harlan Wilton

About

Unifying site config with powerful and flexible APIs, for module authors and users.

https://nuxtseo.com/site-config


Languages

Language:TypeScript 90.9%Language:Vue 9.1%