Deploying Nuxt app with Laravel 8 API

Based on your video on how to deploy react app with laravel as API, tried to do the same with a Nuxt app. Added a env variables, absolutely everything 1:1 as is in video except for variable name for react (REACT_API…), so i got API_BASE_URL=${APP_URL}/app/api

No matter what i set into this variable, my nuxt app is trying to hit NO ‘/app/’ part. If i try to access to this does work.

Why is variable not taken in count?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there!

It looks like you are trying to set routes using env variables. Have you configured any routes in the UI for each component? It does look like this is defaulted to /api. You may also need to configure routes there for your react app if you haven’t done so.

App Platform Routes

Hope it helps! Nate