What should be our domain strategy?

 

Status

DONE

Impact

High

Driver

@Chris J 

Due date

Apr 2, 2020

Outcome

What domain we will be using for the landing page & app.

Background

We need to decide where users will land when they first visit the website and when they try to log in to the app.

Relevant data

  • Monorepo project structure needs to be considered.

Options considered

Schema

flagbase.com
<workspace>.flagbase.com/<project>

flagbase.com
flagbase.io/<workspace>/<project>

flagbase.com
app.flagbase.com/<workspace>/<project>

Schema

flagbase.com
<workspace>.flagbase.com/<project>

flagbase.com
flagbase.io/<workspace>/<project>

flagbase.com
app.flagbase.com/<workspace>/<project>

Pros / Cons

Provides the “personal” feeling.

Fairly easy to set up.

Need to reserve a bunch of workspace ids so users are not able to take them.

Easy to implement

Hard to manage cookies.

Easiest to implement

Tried and tested

No “personal” feeling

Action items

Verify that you can redirect requests to subdomains to single app
Rename repo (flagbase)
Split out client SDKs into different repo (flagbase-client-sdks)
Rename frontend and website firebase hosted domains

Outcome

Deciding to go with using subdomains for multi-tenancy, as it gives the feeling of an isolated environment.