From d6c3953f24f63af842d7c34b9d14ca92340bf43e Mon Sep 17 00:00:00 2001 From: nickreynolds Date: Sun, 12 Jan 2025 14:43:29 -0500 Subject: [PATCH] fix: disable edge runtime by default to enable windows development (#1281) * fix: disable edge runtime by default to enable windows development * Discard changes to README.md * Apply suggestions from code review * Update apps/nextjs/src/app/api/auth/[...nextauth]/route.ts * fmt --------- Co-authored-by: Julius Marminge Co-authored-by: juliusmarminge --- apps/nextjs/src/app/api/auth/[...nextauth]/route.ts | 2 -- apps/nextjs/src/app/api/trpc/[trpc]/route.ts | 2 -- apps/nextjs/src/app/page.tsx | 2 -- 3 files changed, 6 deletions(-) diff --git a/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts b/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts index 22ddf2c4f..31f85f5b1 100644 --- a/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts +++ b/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts @@ -3,8 +3,6 @@ import { NextRequest, NextResponse } from "next/server"; import { handlers, isSecureContext } from "@acme/auth"; -export const runtime = "edge"; - const EXPO_COOKIE_NAME = "__acme-expo-redirect-state"; const AUTH_COOKIE_PATTERN = /authjs\.session-token=([^;]+)/; diff --git a/apps/nextjs/src/app/api/trpc/[trpc]/route.ts b/apps/nextjs/src/app/api/trpc/[trpc]/route.ts index 4a0ef6c43..517035155 100644 --- a/apps/nextjs/src/app/api/trpc/[trpc]/route.ts +++ b/apps/nextjs/src/app/api/trpc/[trpc]/route.ts @@ -3,8 +3,6 @@ import { fetchRequestHandler } from "@trpc/server/adapters/fetch"; import { appRouter, createTRPCContext } from "@acme/api"; import { auth } from "@acme/auth"; -export const runtime = "edge"; - /** * Configure basic CORS headers * You should extend this to match your needs diff --git a/apps/nextjs/src/app/page.tsx b/apps/nextjs/src/app/page.tsx index 0e4df9fb0..b922b50ec 100644 --- a/apps/nextjs/src/app/page.tsx +++ b/apps/nextjs/src/app/page.tsx @@ -8,8 +8,6 @@ import { PostList, } from "./_components/posts"; -export const runtime = "edge"; - export default function HomePage() { // You can await this here if you don't want to show Suspense fallback below void api.post.all.prefetch();