fix: 🐛 Disable font optimization temporarly
https://github.com/vercel/next.js/issues/24781
This commit is contained in:
@@ -50,7 +50,6 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
|
|||||||
(m) => m.userId === userId
|
(m) => m.userId === userId
|
||||||
)?.role
|
)?.role
|
||||||
|
|
||||||
console.log(workspaces)
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!workspaces || workspaces.length === 0) return
|
if (!workspaces || workspaces.length === 0) return
|
||||||
const lastWorspaceId = localStorage.getItem('workspaceId')
|
const lastWorspaceId = localStorage.getItem('workspaceId')
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ const moduleExports = {
|
|||||||
experimental: {
|
experimental: {
|
||||||
outputStandalone: true,
|
outputStandalone: true,
|
||||||
},
|
},
|
||||||
|
optimizeFonts: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
const sentryWebpackPluginOptions = {
|
const sentryWebpackPluginOptions = {
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
},
|
},
|
||||||
select: { name: true, type: true, workspaceId: true, id: true },
|
select: { name: true, type: true, workspaceId: true, id: true },
|
||||||
})
|
})
|
||||||
console.log('Hey there', credentials)
|
|
||||||
return res.send({ credentials })
|
return res.send({ credentials })
|
||||||
}
|
}
|
||||||
if (req.method === 'POST') {
|
if (req.method === 'POST') {
|
||||||
|
|||||||
@@ -18,13 +18,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
const customDomains = await prisma.customDomain.delete({
|
const customDomains = await prisma.customDomain.delete({
|
||||||
where: { name: domain },
|
where: { name: domain },
|
||||||
})
|
})
|
||||||
console.log(
|
|
||||||
{
|
|
||||||
name: domain,
|
|
||||||
workspace: { id: workspaceId },
|
|
||||||
},
|
|
||||||
{ some: { userId: user.id } }
|
|
||||||
)
|
|
||||||
await deleteDomainOnVercel(domain)
|
await deleteDomainOnVercel(domain)
|
||||||
return res.send({ customDomains })
|
return res.send({ customDomains })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
const { email, currency, plan, workspaceId } =
|
const { email, currency, plan, workspaceId } =
|
||||||
typeof req.body === 'string' ? JSON.parse(req.body) : req.body
|
typeof req.body === 'string' ? JSON.parse(req.body) : req.body
|
||||||
|
|
||||||
console.log(plan, workspaceId)
|
|
||||||
const session = await stripe.checkout.sessions.create({
|
const session = await stripe.checkout.sessions.create({
|
||||||
success_url: `${req.headers.origin}/typebots?stripe=success`,
|
success_url: `${req.headers.origin}/typebots?stripe=success`,
|
||||||
cancel_url: `${req.headers.origin}/typebots?stripe=cancel`,
|
cancel_url: `${req.headers.origin}/typebots?stripe=cancel`,
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
include: { members: true },
|
include: { members: true },
|
||||||
orderBy: { createdAt: 'asc' },
|
orderBy: { createdAt: 'asc' },
|
||||||
})
|
})
|
||||||
console.log(workspaces)
|
|
||||||
return res.send({ workspaces })
|
return res.send({ workspaces })
|
||||||
}
|
}
|
||||||
if (req.method === 'POST') {
|
if (req.method === 'POST') {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export const migrateWorkspace = async () => {
|
|||||||
include: { typebot: { select: { workspaceId: true } } },
|
include: { typebot: { select: { workspaceId: true } } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
orderBy: { lastActivityAt: 'desc' },
|
||||||
})
|
})
|
||||||
let i = 1
|
let i = 1
|
||||||
for (const user of users) {
|
for (const user of users) {
|
||||||
|
|||||||
Reference in New Issue
Block a user