From 4160305a67cb47a79e7538ff3578d8878e485f06 Mon Sep 17 00:00:00 2001 From: javayhu Date: Sat, 12 Jul 2025 09:59:30 +0800 Subject: [PATCH] chore: update env.example with Inngest keys --- env.example | 7 +++++++ messages/en.json | 4 ++-- src/app/api/inngest/route.ts | 6 ++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/env.example b/env.example index 572508a..901f1ea 100644 --- a/env.example +++ b/env.example @@ -162,6 +162,13 @@ NEXT_PUBLIC_AFFILIATE_PROMOTEKIT_ID="" NEXT_PUBLIC_TURNSTILE_SITE_KEY="" TURNSTILE_SECRET_KEY="" +# ----------------------------------------------------------------------------- +# Inngest +# https://mksaas.com/docs/jobs#setup +# ----------------------------------------------------------------------------- +INNGEST_SIGNING_KEY="" +INNGEST_EVENT_KEY="" + # ----------------------------------------------------------------------------- # AI # https://mksaas.com/docs/ai diff --git a/messages/en.json b/messages/en.json index 3e22e9c..d7c5b57 100644 --- a/messages/en.json +++ b/messages/en.json @@ -499,8 +499,8 @@ "emailCopied": "Email copied to clipboard", "banned": "Banned", "active": "Active", - "joined": "Joined", - "updated": "Updated", + "joined": "Joined at", + "updated": "Updated at", "ban": { "reason": "Ban Reason", "reasonPlaceholder": "Enter the reason for banning this user", diff --git a/src/app/api/inngest/route.ts b/src/app/api/inngest/route.ts index 6819038..607e9d5 100644 --- a/src/app/api/inngest/route.ts +++ b/src/app/api/inngest/route.ts @@ -6,6 +6,12 @@ import { distributeCreditsDaily, helloWorld } from '../../../inngest/functions'; * Inngest route * * https://www.inngest.com/docs/getting-started/nextjs-quick-start + * + * Next.js Edge Functions hosted on Vercel can also stream responses back to Inngest, + * giving you a much higher request timeout of 15 minutes (up from 10 seconds on the Vercel Hobby plan!). + * To enable this, set your runtime to "edge" (see Quickstart for Using Edge Functions | Vercel Docs) + * and add the streaming: "allow" option to your serve handler: + * https://www.inngest.com/docs/learn/serving-inngest-functions#framework-next-js */ export const { GET, POST, PUT } = serve({ client: inngest,