♿ Add an update notification popup
Appears when a new version of Typebot is available Closes #312
This commit is contained in:
7
apps/builder/src/pages/api/version.ts
Normal file
7
apps/builder/src/pages/api/version.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
|
||||
const handler = async (_req: NextApiRequest, res: NextApiResponse) => {
|
||||
return res.send({ commitSha: process.env.VERCEL_GIT_COMMIT_SHA })
|
||||
}
|
||||
|
||||
export default handler
|
||||
Reference in New Issue
Block a user