Skip to content

Commit 83c6e58

Browse files
committed
Revert
1 parent c7acb4f commit 83c6e58

15 files changed

+0
-58
lines changed

pages/_app.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { useMobileNavigationStore } from '../components/Navigation/MobileNavigat
55
import { Router } from 'next/router';
66
import Script from 'next/script';
77

8-
export const runtime = "experimental-edge";
9-
108
function onRouteChange() {
119
useMobileNavigationStore.getState().close()
1210
}

pages/api/ai-chat.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import type { NextApiRequest, NextApiResponse } from "next";
22
import fetch from "node-fetch";
33
import { createClient } from "@supabase/supabase-js";
44

5-
export const config = {
6-
runtime: "edge",
7-
};
8-
95
const api = async (req: NextApiRequest, res: NextApiResponse) => {
106
const aiKey = process.env.MENDABLE_ANON_KEY;
117
const aiUrl = process.env.MENDABLE_ANON_URL;

pages/api/ai-feedback.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type { NextApiRequest, NextApiResponse } from "next";
22
import fetch from "node-fetch";
33

4-
export const config = {
5-
runtime: "edge",
6-
};
7-
84
const api = async (req: NextApiRequest, res: NextApiResponse) => {
95
const aiUrl = process.env.MENDABLE_ANON_URL;
106

pages/api/ai-init.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import type { NextApiRequest, NextApiResponse } from "next";
22
import fetch from "node-fetch";
33
import { NewConversationResponse } from "../../models";
44

5-
export const config = {
6-
runtime: "edge",
7-
};
8-
95
const api = async (req: NextApiRequest, res: NextApiResponse) => {
106
const aiKey = process.env.MENDABLE_ANON_KEY;
117
const aiUrl = process.env.MENDABLE_ANON_URL;

pages/api/ai-title.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { OpenAiService } from "./../../services/OpenAiService";
22
import type { NextApiRequest, NextApiResponse } from "next";
33
import { GitHubService } from "../../services/GithubService";
44

5-
export const config = {
6-
runtime: "edge",
7-
};
8-
95
const api = async (req: NextApiRequest, res: NextApiResponse) => {
106
if (!req.body.token || !req.body.title) {
117
return res.status(403).send({});

pages/api/ai/description.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { OpenAiService } from "./../../../services/OpenAiService";
22
import type { NextApiRequest, NextApiResponse } from "next";
33
import { GitHubService } from "../../../services/GithubService";
44

5-
export const config = {
6-
runtime: "edge",
7-
};
8-
95
const api = async (req: NextApiRequest, res: NextApiResponse) => {
106
if (!req.body.token || !req.body.title) {
117
return res.status(403).send({});

pages/api/ai/taxonomy.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { OpenAiService } from "./../../../services/OpenAiService";
22
import type { NextApiRequest, NextApiResponse } from "next";
33
import { GitHubService } from "../../../services/GithubService";
44

5-
export const config = {
6-
runtime: "edge",
7-
};
8-
95
const api = async (req: NextApiRequest, res: NextApiResponse) => {
106
if (!req.body.token || !req.body.title) {
117
return res.status(403).send({});

pages/api/ai/title.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { OpenAiService } from "./../../../services/OpenAiService";
22
import type { NextApiRequest, NextApiResponse } from "next";
33
import { GitHubService } from "../../../services/GithubService";
44

5-
export const config = {
6-
runtime: "edge",
7-
};
8-
95
const api = async (req: NextApiRequest, res: NextApiResponse) => {
106
if (!req.body.token || !req.body.title) {
117
return res.status(403).send({});

pages/api/backers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import type { NextApiRequest, NextApiResponse } from "next";
22

3-
export const config = {
4-
runtime: "edge",
5-
};
6-
73
const api = async (req: NextApiRequest, res: NextApiResponse) => {
84
const backers = process.env.BACKERS;
95
const { query } = req;

pages/api/img-sponsors.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type { NextApiRequest, NextApiResponse } from "next";
22
import fetch from "node-fetch";
33

4-
export const config = {
5-
runtime: "edge",
6-
};
7-
84
const mockData = {
95
data: {
106
viewer: {

0 commit comments

Comments
 (0)