This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Is it possible to get the hostname of current micro? Following https://stackoverflow.com/questions/7507015/get-hostname-of-current-request-in-node-js-express var os = require("os");
os.hostname(); But only get internal IP: I need the FQDN of my micro url. |
Beta Was this translation helpful? Give feedback.
Answered by
etrotta
Oct 27, 2022
Replies: 1 comment
-
If you are using {micro}.deta.dev, you can get the {micro} name from the preset environment variables |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
suntong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are using {micro}.deta.dev, you can get the {micro} name from the preset environment variables
Not sure if there's any way besides hardcoding for custom domains though