Skip to content

Commit 6e0e3a9

Browse files
committed
remove edge runtime from all functions
1 parent db647c8 commit 6e0e3a9

File tree

17 files changed

+0
-34
lines changed

17 files changed

+0
-34
lines changed

src/app/api/v1/teams/forms/[id]/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { db } from "@/db";
22
import { NextRequest, NextResponse } from "next/server";
33

4-
export const runtime = 'edge';
5-
64
export async function GET(
75
request: NextRequest,
86
{ params }: { params: { id: string } },

src/app/auth/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { login } from "./actions";
22
import { Button } from "@/components/primitives/button";
33

4-
export const runtime = 'edge';
5-
64
const text = {
75
title: "Launch Pad Portal",
86
login: "Log in With Google",
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { NotFoundPage } from "@/components/layouts/inaccessiblePageWrapper";
22

3-
export const runtime = 'edge';
4-
53
export default function Page() {
64
return <NotFoundPage />;
75
}

src/app/portal/admin/forms/[id]/layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React, { Suspense } from "react";
22
import FormTabView, { Tab } from "@/components/layouts/formTabView";
33
import { getAdminMembers, getAllFormDetails } from "@/app/portal/admin/actions";
44

5-
export const runtime = 'edge';
6-
75
export default async function Layout({
86
params,
97
children,

src/app/portal/admin/forms/[id]/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Link from "next/link";
22
import { redirect } from "next/navigation";
33

4-
export const runtime = 'edge';
5-
64
export default function page({ params }: { params: { id: string } }) {
75
if (!params.id) {
86
return <ErrorDiv />;

src/app/portal/admin/forms/[id]/questions/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// import { useContext } from "react";
55
// import { formContext } from "@/components/layouts/formTabView";
66

7-
export const runtime = 'edge';
8-
97
export default function FormQuestionsEditorPage() {
108
// const { rawForm } = useContext(formContext);
119
// const questions = rawForm.questions;

src/app/portal/admin/forms/[id]/settings/page.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ import { Input } from "@/components/primitives/input";
88
import { Button } from "@/components/primitives/button";
99
import { Application } from "@/lib/types/questions";
1010

11-
export const runtime = 'edge';
12-
13-
1411
function ResultPagePreviews({ form }) {
1512
const { submissions } = useContext(formContext);
1613
const [search, setSearch] = useState("");

src/app/portal/admin/forms/[id]/submissions/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import DataTableWrapper from "@/components/forms/applications/dataTableWrapper";
33
import { useContext } from "react";
44
import { formContext } from "@/components/layouts/formTabView";
55

6-
export const runtime = 'edge';
7-
86
export default function FormSubmissionsPage() {
97
const { formFields, submissions } = useContext(formContext);
108
return <DataTableWrapper data={submissions} formFields={formFields} />;

src/app/portal/admin/forms/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { getForms } from "@/app/portal/admin/actions";
33
import Link from "next/link";
44
import { Form } from "@/lib/types/application";
55

6-
export const runtime = 'edge';
7-
86
export default async function Page() {
97
const forms = (await getForms()) as unknown as Form[];
108
return (

src/app/portal/admin/members/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { FormFields } from "../../../../components/forms/applications/columns";
77
import { ColumnDef } from "@tanstack/react-table";
88
import Loading from "../../loading";
99

10-
export const runtime = 'edge';
11-
1210
function createColumns<TData>(fields: any[]): ColumnDef<keyof FormFields>[] {
1311
const general: any[] = fields.map((field) => {
1412
return {

0 commit comments

Comments
 (0)