Skip to content

Commit

Permalink
fix: switched the runtime to default on the view API
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcodes committed Mar 21, 2024
1 parent 6d99abf commit e4f21ff
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions pages/api/view/[id].ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import nextConnect from "next-connect";
import passport from "passport";

export const config = {
runtime: "edge",
};

import handlePlatformAPI from "@/services/api/handler";

import {
Expand All @@ -25,18 +21,12 @@ export default nextConnect()
.use(validateAccessToken)
.use(setCacheControl)
.get((req: NextApiRequest, res: NextApiResponse) => {
const {
services,
templates,
connection,
query,
config: configLocal,
} = res.locals;
const { services, templates, connection, query, config } = res.locals;
return handlePlatformAPI(
services,
templates,
query,
configLocal,
config,
connection
)(req, res);
});

0 comments on commit e4f21ff

Please sign in to comment.