Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

400
Views
Laravel + Nuxt - how to combine them in VDS?

I've got a project in Laravel. It has an API and an admin panel to manage the data. The frontend portion is written in Nuxt.js, and it interacts with Laravel via the API. Both of them are installed on my local machine. Whats the right way to setup it up on my VDS, for one domain name? Is it possible to do it without combining them in one project folder?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It is possible. Depends on how you set up your virtual hosts. Here's what I would do...

  1. Nuxt.js is served by a virtual host which handles requests for domain.tld.

  2. Laravel is served by another virtual host, which handles requests for api.domain.tld.

In your Nuxt.js front-end, you would then need to set the back-end URL for api.domain.tld. Additionally, you might have to configure CORS on Laravel for this solution to work.

As of Laravel 7, the preferred way to setup CORS is to use laravel-cors.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!