Skip to content

Commit

Permalink
restore edge, add boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdroukas committed Sep 8, 2023
1 parent 7883d90 commit a8be592
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/site/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ interface AuthLayoutProps {
children: ReactNode;
}

export const runtime = "edge";

export default async function SiteLayout({ children }: AuthLayoutProps) {
return (
<div className="flex min-h-screen flex-col">
Expand Down
2 changes: 2 additions & 0 deletions apps/site/app/(site)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ interface SiteLayoutProps {
children: ReactNode;
}

export const runtime = "edge";

export default async function SiteLayout({ children }: SiteLayoutProps) {
return (
<div className="flex min-h-screen flex-col">
Expand Down
11 changes: 11 additions & 0 deletions apps/site/app/(site)/writing/[...slug]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ReactNode } from "react";

interface PostProps {
children: ReactNode;
}

export const runtime = "nodejs";

export default async function Post({ children }: PostProps) {
return <>{children}</>;
}
2 changes: 2 additions & 0 deletions apps/site/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ interface RootLayoutProps {
children: ReactNode;
}

export const runtime = "edge";

export const metadata: Metadata = {
title: {
default: siteConfiguration.name,
Expand Down

0 comments on commit a8be592

Please sign in to comment.