Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add SHOPIFY_WEBHOOK_SECRET to .env.example

Kiran Kb7afbdbf702f
diff --git a/apps/web/.env.example b/apps/web/.env.example
index 0a7da75672..c2ff5dbb56 100644
--- a/apps/web/.env.example
+++ b/apps/web/.env.example
@@ -128,4 +128,7 @@ SLACK_CLIENT_SECRET=
SLACK_SIGNING_SECRET=
# Dynadot API key for domain registration
-DYNADOT_API_KEY=
\ No newline at end of file
+DYNADOT_API_KEY=
+
+# Shopify integration
+SHOPIFY_WEBHOOK_SECRET
\ No newline at end of file
diff --git a/apps/web/app/api/shopify/integration/webhook/route.ts b/apps/web/app/api/shopify/integration/webhook/route.ts
index d9918331af..687e3f2bbc 100644
--- a/apps/web/app/api/shopify/integration/webhook/route.ts
+++ b/apps/web/app/api/shopify/integration/webhook/route.ts
@@ -32,7 +32,7 @@ export const POST = async (req: Request) => {
.digest("base64");
if (generatedSignature !== signature) {
- return new Response(`[Shopify] Invalid signature. Skipping...`, {
+ return new Response(`[Shopify] Invalid webhook signature. Skipping...`, {
status: 401,
});
}
@@ -97,7 +97,7 @@ export const POST = async (req: Request) => {
});
return new Response(
- `[Shopify] Webhook error: "Webhook handler failed. View logs."`,
+ `[Shopify] Webhook handler failed. View logs`,
);
}