harlan-zw / 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

Site Config for Nuxt module authors.


Status: v2 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), env (dev, staging, prod), name, 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 using a new config solution that can be extended by anyone. Think of it as writable runtime config with extra features.

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
  • 🀝 Integrates with @nuxtjs/i18n

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 73.2%Language:Vue 26.6%Language:JavaScript 0.2%