Skip to content

Restrict Reserved Subdomains in Multi-Tenancy Setup #439

Open
@sohamnandi77

Description

@sohamnandi77

Hi @steven-tey, Currently, the Next.js SaaS template supports multi-tenancy, allowing subdomains like demo.vercel.pub and app1.vercel.pub etc to function seamlessly. However, subdomains such as app.vercel.pub are not supported because the app subdomain is proxied to the app folder inside the app directory.

This creates two key challenges:

Blocked Subdomains: Subdomains like app are inherently unavailable due to the application's routing configuration.So, i guess, we need to main a reserved list and exclude them as well while creating sites or in create-site api

Future Reserved Subdomains: There is a possibility of requiring certain subdomains to be reserved for internal use (e.g., admin, partners, etc.) or new features in the future. However, these subdomains could potentially be claimed by users, creating conflicts. How would we solved that ?

Questions

  • Are there other strategies to handle subdomain conflicts without impacting the user experience?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions