Next.js Discord

Discord Forum

Subdomain App

Unanswered
Abyssinian posted this in #help-forum
Open in Discord
AbyssinianOP
I want to create a subdomain app, and I think I figured it out locally the flow is like this

localhost:3000/*
just dashboard for now / sign up for subdomain

subdomain.localhost:3000/*
i.e. testing.localhost:3000, potato.localhost:3000

basically the user can make their own subdomain site on my site

but will i be able to do this on vercel.app free domain

testing.acme.vercel.app
potato.acme.vercel.app

this i cannot seem to figure out? if i can do this for free?

9 Replies

@gin use cloudflare
AbyssinianOP
i dont know what that means
@Abyssinian i dont know what that means
every of your subdomain is a cname that points to your initial domain that is served by cloudflare
i think on vercel there is a option to use a A record to point to vercel
so u can point your subdomains to your root domain that points to vercel
AbyssinianOP
well i got the root site on my domain so i guess thats progress :/
Oriental
short answer: you can't serve the subdomains in a free vercel domain like: testing.acme.vercel.app

you can work around this? for sure.

it will work with a custom domain tho:

https://vercel.com/docs/projects/domains/add-a-domain#wildcard-domains
@Oriental short answer: you **can't** serve the subdomains in a free vercel domain like: testing.acme.vercel.app you can work around this? for sure. it will work with a custom domain tho: https://vercel.com/docs/projects/domains/add-a-domain#wildcard-domains
AbyssinianOP
Yeah trying to figure it out

I got it on my portfolio site

acme.myportfolio.site

But same issue if trying to get that sub sub domain if it is possible

testing.acme.myportfolio.site
AbyssinianOP
i think i got it
https://subdomain-test.khurramali.site/
http://panda.subdomain-test.khurramali.site/

sub sub domain is not SSL secure tho but i think thats okay for portfolio project