Route Access
By default, Ship It requires that the user is logged in and has an active subscription for all paths.
You can specify regular expressions to bypass authentication or billing checks for certain paths like landing pages, marketing pages, or documentation. Ship It applies the following logic:
- If the authentication pattern matches, neither authentication nor billing is enforced.
- If the billing pattern matches, only authentication is enforced.
Here are some example regular expressions:
a^
- Default pattern, matches nothing.^(\\/|\\/docs)$
- Match/
and/docs
.
A good tool for writing and debugging regular expressions is RegExr.