Deployment through API Manager
Hello guys!
We're working on a nuxt3 app, with classic static / api elements.
We're hosting our static content to a CDN, and our backend is running behind a NodeJS server on our own.
The current NodeJS server is our main entry point, as our website directly point to it. From here, the index file is loaded and all subsequent dependencies are fetched from CDN. Api calls are handled by the same server.
We know, almost for sure, we'll need later to expose those apis to our customers, which means we'll need to secure them behind an api manager.
Is that something which has been already done somewhere?
I guess we'll need to deploy two servers. A first one being a very dumb server to serve only for landing purpose, and which will only serve the root index file (+ runtime config), and another one, being private this time, exposed behind our api manager.
I wonder if they're existing flags which may be used in order to tell nitro "eh, in this situation, do not serve api nor static assets". Is there an equivalent to NITRO_SERVE_STATIC = false for api routes?
0 Replies