Hello!
I’m trying to deploy my Nuxt 3 apps to DO App Platform. The goal is to have multiple app listen to different paths/routes on the same domain.
For now I’m playing with just one app to keep it simple.
I’ve set the baseUrl in the nuxt.config.js to /path/
while also setting
routes:
- path: /path/
in my .do/app.yaml
. The issue I’m seeing is that calling /path
now throws a nuxt 404 and in order to get back a 200 I need to go to /path/path
which is not what I’m looking for at all. (Even then the
I’d appreciate any insight here, thank you!
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!
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
Just a quick summary in case that anyone comes across this in the future, we’ve been discussing it here:
https://www.digitalocean.com/community/questions/nginx-internal-communication-between-do-apps
So far, one of the suggestions has been to define your
baseURL
as an environment variable, eg:That way, you will not have to hardcode the
/admin
value and when deploying to the App Platform, you can set thebaseURL
to/
and the path will not be duplicated once you add the route path in your App Platform configuration.However this seems to be an issue with the static files which might be fixable using
assetPrefix
.For further information in case that anyone comes across this, follow the discussion here:
https://www.digitalocean.com/community/questions/nginx-internal-communication-between-do-apps