temporarily disable custom domain check
This commit is contained in:
parent
a1dcf77e6e
commit
7af42334e5
|
|
@ -108,14 +108,15 @@ const handler: NextApiHandler = async (req, res) => {
|
|||
|
||||
if (nextUrl.host !== OUR_DOMAIN && !nextUrl.host.endsWith(`.${OUR_DOMAIN}`)) {
|
||||
// Check if the host belong to a site
|
||||
const existing = await prismaPrimary.domain.findUnique({
|
||||
where: {
|
||||
domain: nextUrl.hostname,
|
||||
},
|
||||
})
|
||||
if (!existing) {
|
||||
throw new Error("invalid next url")
|
||||
}
|
||||
// const existing = await prismaPrimary.domain.findUnique({
|
||||
// where: {
|
||||
// domain: nextUrl.hostname,
|
||||
// },
|
||||
// })
|
||||
// if (!existing) {
|
||||
// throw new Error("invalid next url")
|
||||
// }
|
||||
throw new Error("invalid next url")
|
||||
}
|
||||
|
||||
nextUrl.searchParams.set("id", publicId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue