(api) Add CRUD typebot endpoints

Closes #320, closes #696
This commit is contained in:
Baptiste Arnaud
2023-08-17 09:39:11 +02:00
parent 019f72ac7e
commit 454d320c6b
78 changed files with 25014 additions and 1073 deletions

View File

@@ -1,2 +1,4 @@
export const isCloudProdInstance =
typeof window !== 'undefined' && window.location.hostname === 'app.typebot.io'
(typeof window !== 'undefined' &&
window.location.hostname === 'app.typebot.io') ||
process.env.NEXTAUTH_URL === 'https://app.typebot.io'

View File

@@ -10,6 +10,7 @@ import { typebotRouter } from '@/features/typebot/api/router'
import { workspaceRouter } from '@/features/workspace/api/router'
import { router } from '../../trpc'
import { analyticsRouter } from '@/features/analytics/api/router'
import { collaboratorsRouter } from '@/features/collaboration/api/router'
export const trpcRouter = router({
getAppVersionProcedure,
@@ -23,6 +24,7 @@ export const trpcRouter = router({
billing: billingRouter,
credentials: credentialsRouter,
theme: themeRouter,
collaborators: collaboratorsRouter,
})
export type AppRouter = typeof trpcRouter