fix: remove unused db import in index api
This commit is contained in:
parent
6ee8b10f97
commit
3cf707239a
|
@ -1,7 +1,6 @@
|
|||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
|
||||
import fs from 'fs';
|
||||
import Database from '@/lib/database';
|
||||
|
||||
export default function handler(req, res) {
|
||||
const resp = {
|
||||
|
@ -25,8 +24,6 @@ export default function handler(req, res) {
|
|||
]
|
||||
};
|
||||
|
||||
const db = new Database();
|
||||
|
||||
try {
|
||||
resp.build_id = fs.readFileSync('.next/BUILD_ID', 'utf8');
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in a new issue