Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

401
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda