Skip to content

Commit

Permalink
fix: disable edge runtime by default to enable windows development (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Co-authored-by: juliusmarminge <[email protected]>
  • Loading branch information
3 people authored Jan 12, 2025
1 parent 7f398ac commit d6c3953
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions apps/nextjs/src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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=([^;]+)/;

Expand Down
2 changes: 0 additions & 2 deletions apps/nextjs/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions apps/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d6c3953

Please sign in to comment.