mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-15 15:05:57 +08:00
Nick: custom metadata
This commit is contained in:
parent
1d1a936f2c
commit
e22a0b596c
@ -251,6 +251,7 @@ export const webhookSchema = z.preprocess(
|
||||
.object({
|
||||
url: z.string().url(),
|
||||
headers: z.record(z.string(), z.string()).default({}),
|
||||
metadata: z.record(z.string(), z.string()).default({}),
|
||||
})
|
||||
.strict(strictMessage),
|
||||
);
|
||||
|
@ -99,6 +99,7 @@ export const callWebhook = async (
|
||||
: eventType === "crawl.page"
|
||||
? data?.error || undefined
|
||||
: undefined,
|
||||
metadata: webhookUrl.metadata || undefined,
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
@ -131,6 +132,7 @@ export const callWebhook = async (
|
||||
: eventType === "crawl.page"
|
||||
? data?.error || undefined
|
||||
: undefined,
|
||||
metadata: webhookUrl.metadata || undefined,
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user