Configure your app
subdomain locally
app
subdomain that hosts the application itself.
It’s a common practice in the industry to use an app
subdomain to separate your application from your landing page.
This practice has been adopted for these reasons:
app
subdomain is dedicated to the application itself. This separation make the navigation and user experience smoother.app
subdomain can help implement specific security measure tailored to the application. For example, common cases do not have to handle any public page different than /sign-in
.app
subdomain simplify tracking. You can segment traffic and user behavior more easily between the application and the marketing site, helping you find specific insights./etc/hosts
file to point the subdomain app.localhost
to the address 127.0.0.1
.
/etc/hosts
file in your favorite editorhttp://app.localhost:3000
and you will see a page like this: