Commit 7924bdd
committed
fix(shop): hard-code Shopify store identity to unblock Netlify scanner
Netlify's secrets scanner treats every env var value as sensitive and
fails the build when any of those values appear in the output, with no
semantic awareness of which ones are public. SHOPIFY_STORE_DOMAIN
(tanstack-2.myshopify.com) and SHOPIFY_API_VERSION (2026-01) are
public by design — Shopify prints the domain on every hosted-checkout
URL, order email, and receipt, and the version is a platform-wide
identifier.
Moving both to source constants in src/server/shopify/fetch.ts:
- Keeps them out of the env-var watchlist entirely (no scan false
positive, no per-site SECRETS_SCAN_OMIT_KEYS config needed)
- Makes the store identity explicit in the codebase where the fetch
helper lives
- Leaves actual secrets (SHOPIFY_PRIVATE_STOREFRONT_TOKEN) in env
After this change, the only Shopify env var the deploy needs is
SHOPIFY_PRIVATE_STOREFRONT_TOKEN.1 parent 7bda760 commit 7924bdd
2 files changed
Lines changed: 18 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
3 | 14 | | |
4 | 15 | | |
5 | 16 | | |
| |||
35 | 46 | | |
36 | 47 | | |
37 | 48 | | |
38 | | - | |
39 | 49 | | |
40 | | - | |
41 | 50 | | |
42 | | - | |
| 51 | + | |
43 | 52 | | |
44 | | - | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
56 | | - | |
| 65 | + | |
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
| |||
0 commit comments