Control URL address for netlify dev

answered
#1

Is there any plan to add a flag to set the URL for nelify dev?

Or, let me put it in a different way: If I need to restart the live server, is it possible to use the same URL that I was using previously?

#2

I’m interested in this as well, especially if coupled with HTTPS support.

#3

i think we did this for the demo but it may have been a special hack. i’m not sure. whats the use case so we can understand core need?

#4

Probably being able to run netlify dev --live -d guayom
Then the domain would be something like guayom.netlify.live or something like that.
Or maybe being able to set the domain in the netlify.toml file.

Actually, anything that will enable you to use a fixed url for your site, or re-utilize a previously used url. :slight_smile:

#5

ok but have to consider conflicts, if two hosts pick the same name. idk what our plan is. would defer to @calavera.

#6

It requires some consideration, as @swyx mentions, we need to make sure that the connection is unique. If we decide to do it, we’ll probably make it match your site’s name on Netlify, so if your site domain is clever-cray.netlify.com, your live domain will be clever-cray.netlify.live.

2 Likes
#7

That would be absolutely perfect