diff --git a/.env.local b/.env.local index 3224d9e..2c19a94 100644 --- a/.env.local +++ b/.env.local @@ -5,6 +5,9 @@ BACKEND_BASE_URL=http://localhost:8080 # Middleware to limited site to only root page NEXT_PUBLIC_LAUNCH_ONLY_ROOT=false +NEXT_PUBLIC_SHORTLINK_BASE_URL=http://localhost:8080 + # Brevo API key for beta sign up collection BREVO_API_KEY=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 BREVO_LIST_ID=9 + diff --git a/.env.production b/.env.production index fe409f3..9b1b816 100644 --- a/.env.production +++ b/.env.production @@ -4,6 +4,8 @@ NEXT_PUBLIC_API_BASE_URL=http://localhost:8080 # Middleware to limited site to only root page NEXT_PUBLIC_LAUNCH_ONLY_ROOT=false +NEXT_PUBLIC_SHORTLINK_BASE_URL=https://battl.build + # Brevo API key for beta sign up collection BREVO_API_KEY=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 BREVO_LIST_ID=9 diff --git a/components/parts/PartsGrid.tsx b/components/parts/PartsGrid.tsx index 8dd7892..8f8791f 100644 --- a/components/parts/PartsGrid.tsx +++ b/components/parts/PartsGrid.tsx @@ -12,7 +12,8 @@ type UiPart = { partRole: string; price: number; imageUrl?: string; - buyUrl?: string; + buyUrl?: string; // Used for debugging + buyShortUrl?: string; inStock?: boolean; }; @@ -64,9 +65,9 @@ export default function PartsGrid(props: { > {addLabel} - ) : part.buyUrl ? ( + ) : part.buyShortUrl ?? part.buyUrl ? ( - ) : part.buyUrl ? ( + ) : part.buyShortUrl ?? part.buyUrl ? (