Skip to content

Commit

Permalink
fix: apply the edge runtime to missing routes (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanceaclark committed Apr 17, 2024
1 parent 32f9d7c commit 8e6328f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-nails-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

Apply the edge runtime to missing routes.
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ export default async function Category({ params: { locale, slug }, searchParams
</div>
);
}

export const runtime = 'edge';
2 changes: 2 additions & 0 deletions apps/core/app/[locale]/(default)/account/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ export default async function AccountPage({ params: { locale } }: Props) {
</div>
);
}

export const runtime = 'edge';
1 change: 1 addition & 0 deletions apps/core/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { handlers } from '~/auth';

export const { GET, POST } = handlers;
export const runtime = 'edge';

0 comments on commit 8e6328f

Please sign in to comment.