Skip to content

Commit

Permalink
add vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz committed Nov 25, 2024
1 parent 9fa35f8 commit 953fb10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/api/climbing-tiles/refresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { NextApiRequest, NextApiResponse } from 'next';
import { climbingTile } from '../../../src/server/climbing-tiles/climbing-tile';
import { refresh } from '../../../src/server/climbing-tiles/refresh';

export const config = {
maxDuration: 60 * 4, // 4 minutes
};
// export const config = {
// maxDuration: 60 * 4, // 4 minutes
// };

export default async (req: NextApiRequest, res: NextApiResponse) => {
try {
Expand Down
12 changes: 12 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"functions": {
"api/climbing-tiles/refresh.ts": {
"memory": 3009,
"maxDuration": 300
},
"pages/api/climbing-tiles/refresh.ts": {
"memory": 3009,
"maxDuration": 300
}
}
}

0 comments on commit 953fb10

Please sign in to comment.