Skip to content

Commit

Permalink
fix: 🐛 Disable font optimization temporarly
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 14, 2022
1 parent 46037c0 commit 508c166
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion apps/builder/contexts/WorkspaceContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
(m) => m.userId === userId
)?.role

console.log(workspaces)
useEffect(() => {
if (!workspaces || workspaces.length === 0) return
const lastWorspaceId = localStorage.getItem('workspaceId')
Expand Down
1 change: 1 addition & 0 deletions apps/builder/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const moduleExports = {
experimental: {
outputStandalone: true,
},
optimizeFonts: false,
}

const sentryWebpackPluginOptions = {
Expand Down
1 change: 0 additions & 1 deletion apps/builder/pages/api/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
},
select: { name: true, type: true, workspaceId: true, id: true },
})
console.log('Hey there', credentials)
return res.send({ credentials })
}
if (req.method === 'POST') {
Expand Down
8 changes: 1 addition & 7 deletions apps/builder/pages/api/customDomains/[domain].ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const customDomains = await prisma.customDomain.delete({
where: { name: domain },
})
console.log(
{
name: domain,
workspace: { id: workspaceId },
},
{ some: { userId: user.id } }
)

await deleteDomainOnVercel(domain)
return res.send({ customDomains })
}
Expand Down
1 change: 0 additions & 1 deletion apps/builder/pages/api/stripe/checkout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const { email, currency, plan, workspaceId } =
typeof req.body === 'string' ? JSON.parse(req.body) : req.body

console.log(plan, workspaceId)
const session = await stripe.checkout.sessions.create({
success_url: `${req.headers.origin}/typebots?stripe=success`,
cancel_url: `${req.headers.origin}/typebots?stripe=cancel`,
Expand Down
1 change: 0 additions & 1 deletion apps/builder/pages/api/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
include: { members: true },
orderBy: { createdAt: 'asc' },
})
console.log(workspaces)
return res.send({ workspaces })
}
if (req.method === 'POST') {
Expand Down
1 change: 1 addition & 0 deletions packages/scripts/workspaceMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const migrateWorkspace = async () => {
include: { typebot: { select: { workspaceId: true } } },
},
},
orderBy: { lastActivityAt: 'desc' },
})
let i = 1
for (const user of users) {
Expand Down

4 comments on commit 508c166

@vercel
Copy link

@vercel vercel bot commented on 508c166 May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 508c166 May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 508c166 May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

app.typebot.io
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app

Please sign in to comment.