diff --git a/README.md b/README.md
index d1ae6e5..05a99e1 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,9 @@ and create event tracking endpoints for
[SherpaJS](https://github.com/sellersindustry/SherpaJS) an agnostic and modular
serverless platform.
+> [!CAUTION]
+> Vercel doesn't support AJV regularly, we are working on a fix, but as of now,
+> validation doesn't work on Vercel.
diff --git a/src/index.ts b/src/index.ts
index c5de446..5b66f5d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -17,9 +17,11 @@ import { Event, Payload, IService } from "./model";
export async function SendEvent(service:IService, event:Event, data:Payload):Promise {
- let validate = getSchema(event);
- if (validate != undefined && !validate(data)) {
- return getErrors(validate);
+ if (process.env.VERCEL == undefined) { //! FIXME
+ let validate = getSchema(event);
+ if (validate != undefined && !validate(data)) {
+ return getErrors(validate);
+ }
}
await service.add(event.id, data);
return null;