S

serverus

🔥 Multi-tenant application for creating customized platforms, marketplaces, and websites with custom hostnames on the edge. PayPal Marketplace and Stripe Connect integration. i18n locales and translations. Theme customization and more.

Added a site locales sql table and started loading sites from database by client locale and then falling back to site default locale.

Created a custom fetch composable (wrapper) for useFetch named useFletch.

Re-used the same Yup object schema for validating server and client input.

Discovered the correct way to throw and handle fetch errors in Nuxt 3.

Getting Nuxt 3 to load sites from database with custom hostnames on the edge.

refactor: sql to pinia data transformer

Updated the transformer to make it more generic and re-usable. The transformer takes database rows and converts their column name aliases back to original name and normalizes the structure. See: http://web.archive.org/web/20211109135144/https://forum.vuejs.org/t/vuex-best-practices-for-complex-objects/10143/2

{
user: {
1234: {... }, // ids as keys
46473: { name: 'Tom', topics: [345, 3456] } // keep only ids of nested items.
}
}