Skip to content

Commit

Permalink
enable edge runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Dec 13, 2023
1 parent 36d96de commit 526a9bd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/api/preSearch/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import config from '@/lib/config'

/**
* Route segment config.
*
* @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
*/
export const runtime = 'edge'

/**
* Popular Subreddit Reddit API.
*
Expand Down
7 changes: 7 additions & 0 deletions app/api/reddit/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ interface RedditPost {
}
}

/**
* Route segment config.
*
* @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
*/
export const runtime = 'edge'

/**
* Query Reddit API.
*
Expand Down
7 changes: 7 additions & 0 deletions app/api/search/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import config from '@/lib/config'

/**
* Route segment config.
*
* @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
*/
export const runtime = 'edge'

/**
* Search Reddit API.
*
Expand Down

1 comment on commit 526a9bd

@vercel
Copy link

@vercel vercel bot commented on 526a9bd Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.