a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use vercel_env for isProduction logic

+2 -5
+2 -5
src/utils/isProductionDeployment.ts
··· 1 1 export function isProductionDomain() { 2 - let url = 3 - process.env.NEXT_PUBLIC_VERCEL_URL || 4 - process.env.VERCEL_URL || 5 - "http://localhost:3000"; 6 - return process.env.NODE_ENV === "production" && url.includes("leaflet.pub"); 2 + let vercel_env = process.env.NEXT_PUBLIC_VERCEL_ENV || process.env.VERCEL_ENV; 3 + return process.env.NODE_ENV === "production" && vercel_env === "production"; 7 4 }