Skip to content

Commit

Permalink
Vercelの関数の最大実行時間を30秒に変更する
Browse files Browse the repository at this point in the history
  • Loading branch information
nagutabby committed Feb 8, 2025
1 parent 323c513 commit d4f7815
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/routes/api/activitypub/sender/+server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import prisma from '$lib/prisma';
import type { Config } from '@sveltejs/adapter-vercel';
import type { RequestHandler } from '@sveltejs/kit';
import { PRIVATE_KEY } from '$env/static/private';
import { signRequest } from '$lib/signRequest';

export const config: Config = {
maxDuration: 30
};

const sendActivity = async (articleId: string, activityType: string, fetch: Function) => {
try {
const activity = await fetch(`/api/articles/${articleId}/${activityType}`);
Expand Down

0 comments on commit d4f7815

Please sign in to comment.