Retrieve Hostname -> SDK

sdk

#1

What would be the best approach for retrieving $C9_HOSTNAME from within a plugin?

I found this api -> https://apidoc.c9.io/c9v3/#!/api/c9

However that doesn’t seem to provide that information.


#2

c9.hostname works but is not documented.
It is undefined in standalone mode, similar to $C9_HOSTNAME


#3

Ah ok. TYVM I’ll give that a shot :smile: