Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gabotronix's avatar

Nuxt SSR + Laravel API nginx conf advice

Hi everybody, I'm thinking about trying the following stack: bascially Laravel would act as the API backend and Nuxt would server side render the app and fetch (vuex data) for the components with axios, that way I'd have a server side rendered, SEO friendly app using both vue and laravel.

Is this a good combo, I don't want to use express or similar since I'm not experienced with nde.js yet.

Both backend and forntend would be their own projects, that is two separate folders, I think this would be the best option to manage and mantain forntend and backend separately.

Now I'll be using nginx as a web server, and I'd have something like www.example.com which would be my nuxt frontend AND www.api.example.com as my API where all my endpoints are placed (laravel).

My question is how could my nginx configuration file look like? I have read a bit and what I'm supposed to do is use nginx as a reverse proxy right? anyone have a virtusl host conf for such a setup in nginx?

Any help, advice or suggestions is greatly appreciated for a noob like me!

0 likes
3 replies
Gabotronix's avatar

@AUDUNRU - Will look at that but I haven't used Forge ever, I'd be using DigitalOcean's LEMP stack probably.

jhull's avatar

Were you ever able to figure this stack out?

Please or to participate in this conversation.