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/
.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.
Click below to sign up and get $200 of credit to try our products over 60 days!
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
Just a quick summary in case that anyone comes across this in the future, we’ve been discussing it here:
So far, one of the suggestions has been to define your
baseURLas an environment variable, eg:
That way, you will not have to hardcode the
/adminvalue and when deploying to the App Platform, you can set the
/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
For further information in case that anyone comes across this, follow the discussion here: