diff --git a/.changeset/heavy-cups-train.md b/.changeset/heavy-cups-train.md new file mode 100644 index 0000000000..926d6ae2e9 --- /dev/null +++ b/.changeset/heavy-cups-train.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-makeswift": patch +--- + +fix: handle OPTIONS requests via MakeswiftApiHandler diff --git a/core/app/api/makeswift/[...makeswift]/route.ts b/core/app/api/makeswift/[...makeswift]/route.ts index 3ef7bc1f62..375dc590ef 100644 --- a/core/app/api/makeswift/[...makeswift]/route.ts +++ b/core/app/api/makeswift/[...makeswift]/route.ts @@ -47,4 +47,4 @@ const handler = MakeswiftApiHandler(process.env.MAKESWIFT_SITE_API_KEY, { }, }); -export { handler as GET, handler as POST }; +export { handler as GET, handler as POST, handler as OPTIONS };