@usequark/quark-create-app 1.27.3 → 1.27.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usequark/quark-create-app",
3
- "version": "1.27.3",
3
+ "version": "1.27.4",
4
4
  "description": "CLI to scaffold new Quark projects with Next.js, Prisma, BullMQ, and Railway deployment",
5
5
  "keywords": [
6
6
  "quark",
@@ -67,7 +67,7 @@ export const UMAMI_PROXY_RECORD_PATH = "/s/api/record";
67
67
 
68
68
  // Server-side upstream preference: an operator that wants the analytics host
69
69
  // out of the client bundle entirely sets UMAMI_UPSTREAM_URL (or UMAMI_URL)
70
- // and the rewrite/handler destination follows it. NEXT_PUBLIC_UMAMI_URL
70
+ // and the handler destination follows it. NEXT_PUBLIC_UMAMI_URL
71
71
  // remains the default so existing deployments keep working with no new vars.
72
72
  export function getUmamiUpstreamBase(env = process.env) {
73
73
  const candidates = [
@@ -97,8 +97,11 @@ export function dispatchMetric(metric) {
97
97
  const body = JSON.stringify(payload);
98
98
 
99
99
  // First-party ingest: same-origin POSTs survive blocklists that match the
100
- // upstream analytics host as third-party.
101
- const endpoint = config.proxySendUrl || `${config.url}/api/send`;
100
+ // upstream analytics host as third-party. The client config carries no
101
+ // upstream URL, so there is no direct-mode fallback — when disabled the
102
+ // function already returned above.
103
+ const endpoint = config.proxySendUrl;
104
+ if (!endpoint) return;
102
105
 
103
106
  // Use sendBeacon for reliability during page lifecycle transitions.
104
107
  if (navigator.sendBeacon) {