Skip to content

Commit

Permalink
ci: 👷 Add connection pooling DB
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 18, 2022
1 parent 558a603 commit 1c178e0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
11 changes: 0 additions & 11 deletions apps/builder/libs/mailgun.ts

This file was deleted.

13 changes: 13 additions & 0 deletions apps/viewer/pages/api/ping.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { NextApiRequest, NextApiResponse } from 'next'
import Cors from 'cors'
import { initMiddleware, methodNotAllowed } from 'utils'

const cors = initMiddleware(Cors())

const handler = async (req: NextApiRequest, res: NextApiResponse) => {
await cors(req, res)
if (req.method === 'GET') return res.status(200).send({ message: 'success' })
return methodNotAllowed(res)
}

export default handler
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"dev": "dotenv -e ../../apps/builder/.env.local yarn prisma db push && yarn start:sutdio ",
"start:sutdio": "dotenv -e ../../apps/builder/.env.local -v BROWSER=none yarn prisma studio",
"build": "yarn migration:deploy",
"build": "DATABASE_URL=$MIGRATION_DATABASE_URL yarn migration:deploy",
"migration:push": "dotenv -e ../../apps/builder/.env.local yarn prisma db push",
"migration:create": "dotenv -e ../../apps/builder/.env.local yarn prisma migrate dev",
"migration:reset": "dotenv -e ../../apps/builder/.env.local yarn prisma migrate reset",
Expand Down

2 comments on commit 1c178e0

@vercel
Copy link

@vercel vercel bot commented on 1c178e0 Feb 18, 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

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

@vercel
Copy link

@vercel vercel bot commented on 1c178e0 Feb 18, 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:

viewer-v2 – ./apps/viewer

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

Please sign in to comment.