DEV Community

Discussion on: How to Deploy Express on Now.sh

warenix profile image
warenix Author • Edited

As @Gli said once you push code to now, intance url will be printed on console. Notice the line https://express-now-3b57ke4d4.now.sh is printed.

Sample output

❯ now-linux

Deploying ~/code/repo/github/express-now under XXXXXXX
Synced 2 files (929B) [1s]
https://express-now-3b57ke4d4.now.sh [v2] [in clipboard] [1s]
┌ index.js Ready [17s]
└── λ index.js (284.31KB) [sfo1]
Success! Deployment ready [19s]

Visit zeit.co/now here to see more details

Thread Thread
revskill10 profile image
Truong Hoang Dung

No no, what i mean is, inside my index.js code, i want to get the instance url like process.env.NOW_URL, like in Now V1.