--host and local dns names
              
              #3976
            
            
                  
                    
                      jbergstroem
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 1 comment
-
| 
         So, looking a bit closer into this; we are basically just looking at whatever  Not sure if I am an exception case (read: relying on hostnames for locallys signed SSL certificates) so I'm not sure if a PR would be accepted where I just print "  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
A common practice where I work to keep environments as similar as possible is to use hostnames to separate environments; for instance
https://work.comfor production,https://staging.work.comfor a Q/A environment andhttps://dev.work.comfor local development. These may be resolved via either/etc/hostsor a dns resolver. In this case,dev.work.comwould resolve to127.0.0.1which is a local address, but treated by SvelteKit as external.This could be seen as a minor inconvenience since opening
127.0.0.1would work in most cases. It gets tricker once you start usingcspor your own SSL certificates since both relies on what host is being used.I would like to suggest a change to how Sveltekit sees as local by resolving what is passed to
--host(should it not be an ip) and based on the result, use said host for either local or external when writing to console or using launch.Thanks for your consideration.
Beta Was this translation helpful? Give feedback.
All reactions