Skip to content

Commit

Permalink
fix: edge runtime on dynamic routes
Browse files Browse the repository at this point in the history
Co-authored-by: PsicoThePato <PsicoThePato@users.noreply.github.com>
  • Loading branch information
EdSDR and PsicoThePato committed Sep 17, 2024
1 parent 5de2173 commit 2c61eb3
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions apps/commune-governance/src/app/api/files/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { NextResponse } from "next/server";

import { env } from "~/env";

export const runtime = "edge";

export function config(): { api: { bodyParser: false } } {
return {
api: {
Expand Down
2 changes: 0 additions & 2 deletions apps/commune-governance/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// export const runtime = "edge";

import { fetchRequestHandler } from "@trpc/server/adapters/fetch";

import { appRouter, createTRPCContext } from "@commune-ts/api";
Expand Down
2 changes: 0 additions & 2 deletions apps/commune-governance/src/app/dao/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { ArrowLeftIcon } from "@heroicons/react/20/solid";

import { DaoExpandedView } from "./_components/dao-expanded-view";

export const runtime = "edge";

export default function CardView({
params,
}: {
Expand Down
2 changes: 0 additions & 2 deletions apps/commune-governance/src/app/proposal/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { ArrowLeftIcon } from "@heroicons/react/20/solid";

import { ProposalExpandedView } from "./_components/proposal-expanded-view";

export const runtime = "edge";

export default function CardView({
params,
}: {
Expand Down
2 changes: 0 additions & 2 deletions apps/commune-validator/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// export const runtime = "edge";

import { fetchRequestHandler } from "@trpc/server/adapters/fetch";

import { appRouter, createTRPCContext } from "@commune-ts/api";
Expand Down
2 changes: 0 additions & 2 deletions apps/commune-validator/src/app/module/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { fetchCustomMetadata, smallAddress } from "@commune-ts/utils";
import { ReportModule } from "~/app/components/report-module";
import { api } from "~/trpc/server";

// export const runtime = "edge";

interface Params {
params: {
slug: string[];
Expand Down

0 comments on commit 2c61eb3

Please sign in to comment.