feat: test ISR

This commit is contained in:
Daniel Soares committed 2021-12-14 10:28:33 -03:00
1 parent aaaaedb73c
commit 2a1164d1fd
26 files changed
+295 -192

No files matched your search

-5
View File
@@ -2,7 +2,6 @@ import { NextApiRequest, NextApiResponse } from 'next'
import nc from 'next-connect'
import { prisma } from '../../services/prisma'
const { RAILWAY_TOKEN } = process.env
const handler = nc<NextApiRequest, NextApiResponse>()
.get(async (_req, res) => {
@@ -24,10 +23,6 @@ const handler = nc<NextApiRequest, NextApiResponse>()
data: { data: JSON.stringify(req.body.data) }
})
if (RAILWAY_TOKEN) {
console.log('railway token', RAILWAY_TOKEN)
}
res.status(200).json(response)
} catch (error) {
console.error(error)