Express composition url and protocol are undefined #7525
Unanswered
BillyCottrell
asked this question in
Q&A
Replies: 1 comment 2 replies
-
From my understanding, For the cont server = new ExpressServer();
const url = server.url; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I can't seem to get the server URL to be displayed, when retrieving the URL of the restServer it is for some reason undefined.
So I thought to use the config parameters to construct the URL myself but again I wasn't able to do it because the protocol was undefined as well for some reason, at first I was thinking that I was doing something wrong but that isn't the case since its literally the express composition repo I am using.
You can get the same result when using the express composition repo and edit the index.ts file main function:
Am I doing something wrong or is it just not possible because of the express server?
Thanks in advance,
Billy Cottrell
Beta Was this translation helpful? Give feedback.
All reactions