Nuxt server API on subdomain
For native app reasons I need my Nuxt API routes to be on a subdomain of the Nuxt FE root domain. Has anyone done this before? In my head I feel like the solution is to just deploy the entire thing twice to both the root domain and subdomain and change the base URL for the API to point to the subdomain
6 Replies
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Basically capacitor won’t let you call the universal domain /api path as it routes all root domain queries to itself (the native app)
GitHub
docs(autofill-credentials): Add warning about hostname and apis by ...
A big footgun for me when implementing server.hostname to match my live site was the app stopped working because it was making network requests to the same domain.com/api which Capacitor was routin...
I’m trying to create a fullstack app with Nuxt in a single repo so yeah would prefer to keep server and client together.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Yeah my current projects are fastify api running in AWS lambda but I really wanted to give fullstack Nuxt on the edge a go!