Hi.
I am using next.js to run a discord bot. I accept 'interaction' requests from discord on /api/interactions (interactions refer to discord slash commands). This route is using edge runtime.
A few of my slash commands have logic that I need to use specifically in Washington D.C (Better to not ask ha). Of course, it would be bad to convert my /api/interactions in its entirety to node as that would slow down other commands.
I was thinking about creating a new route using node runtime, something like /api/interactions/node, and sending a fetch request there from /api/interactions, effectively converting the edge runtime into a node runtime.
But surely, this isn't best practice. Are there any standard procedures for this niche question, pertaining to how to potentially transfer the request from edge to node function without using fetch? Or making a new route?
Thanks.