How do I check if it goes "@sapphire/plugin-api"
How do I check if @sapphire/plugin-api bot api is working properly, I use railway for production
Solution:Jump to solution
add a route and see if you can query it. How that integrates with railway is for you to figure out, support for sapphire does not extend to the hosting platform.
18 Replies
Solution
add a route and see if you can query it. How that integrates with railway is for you to figure out, support for sapphire does not extend to the hosting platform.
the api should be exposed on the port you specified, use whatever url the origin you set it
if railway doesnt give you a url
use ngrok to expose it from localhost
or port 4000 by default
i had to check the docs if you could set the api origin before i sent it
https://try.cloudflare.com better use cloudflare, more reliable than ngrok
or that
With railway I can generate the site or use tcp
so you have to edit the origin in your api options to the url railway generates
or else use ngrok/cloudflare to map railway's local host to a public url
(both ngrok and try.cloudflare are temporary solutions btw, you should eventually get a domain and use that)
^^
i already have it lol
if you have a url ready, just set the origin in api plugin options
And configure railway ingress I guess. No idea how railway does firewalling / reverse proxying / ingress
railway and a docker-based hosting, supports the creation of domains generated as vercel
I tested, local goes but I don't know if in production goes
In the end it's like you're using a website? right?
Do I try cloudflare tunnel?
correct
Now goes the api but I don't know if there is a way to merge the two sites
Do I try Caddy?