Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict Reserved Subdomains in Multi-Tenancy Setup #439

Open
sohamnandi77 opened this issue Nov 27, 2024 · 0 comments
Open

Restrict Reserved Subdomains in Multi-Tenancy Setup #439

sohamnandi77 opened this issue Nov 27, 2024 · 0 comments

Comments

@sohamnandi77
Copy link

sohamnandi77 commented Nov 27, 2024

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant