How to serve the same Frontend for different domains showing different content

0

I'll explain better.

Firstly, I intend to use Vue.js, specifically Nuxt to create a site template that will connect to an API and pick up the news, site color pattern, some specific layout settings, etc ... This API will probably be created in Laravel with an admin panel for site owners.

However, each site has a different domain. My question is: How to use the template created in Vue for all sites by changing only the API address, ex: api.system.com/site/1/posts

I thought about this because I currently use Jekyll, but whenever I upgrade to the frontend model, I need to generate and upload a copy for each domain individually.

If someone knows a solution and wants to share, thank you!

    
asked by anonymous 27.07.2018 / 20:40

0 answers