jsJ
Denoβ€’2y agoβ€’
1 reply
js

Deno Fresh: client side check dev or production

For my Deno Fresh app, I want to do a simple check from the client-side code to see whether it's in development mode or production deployed mode.

Use case is: I want to point my API to my localhost if it's in development, otherwise point the API to production server.

How can I do this in Deno Fresh?
Was this page helpful?