DEV Community

Discussion on: Dynamic Brand theming using CSS variables

Collapse
wireless25 profile image
Stephan Simonett

We run a Nuxt app on a server cause we need SSR for authentication. This way, I can use the serverMiddleware Nuxt provides. This is basically the node process the Nuxt app itself is running on, so no need for an additional server, pretty nice. Nuxt docs

The config is not that fancy, just some values for colors, some translation strings, and some image paths. I "hard code" this as an object directly in my endpoint in the serverMiddleware. If this scales, like more complexity or more companies (now only 3), I will maybe externalize the config, but for now, this is perfectly fine.

Thread Thread
mathumitha profile image
mathumitha Author

That's awesome 👍