News for hackers. Stuff that matters.
Re:.localhost Domains by cyral on Thursday April 10, 2025 @11:47AM (#43645096)
Note the use of the Caddy webserver (you could also use nginx or whatever), which proxies to the port, so it's just myapp.localhost. I like this because it mirrors our production site. We can have subdomain.myapp.localhost and subdomain.myapp.com so links and everything work properly in both environments (assuming you have an env variable for the base domain)
Re:.localhost Domains by oulipo on Thursday April 10, 2025 @12:01PM (#43645259)
Could there be a way to setup the Caddy server dynamically using eg direnv so that it's only launched when I'm in my dev folder?