Commit 7bda760
committed
fix(shop): drop VITE_SHOPIFY_* — Netlify secrets scanner false positive
The cart refactor moved all Shopify Storefront API calls server-side
(createServerFn), so VITE_SHOPIFY_* env vars are no longer consumed by
any code path. Vite still statically substitutes import.meta.env with
every VITE_* var set at build time, so if the deploy environment
defines VITE_SHOPIFY_STORE_DOMAIN with the same value as the server
SHOPIFY_STORE_DOMAIN, Netlify's secrets scanner matches the value
inside the client bundle and fails the build.
Removing the VITE_* entries from the client env schema (nothing
references them) plus unsetting VITE_SHOPIFY_* in Netlify's env config
resolves the scan without an allowlist.1 parent bedc678 commit 7bda760
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments