There was an error while loading. Please reload this page.
2 parents 0624302 + 545e92e commit e1618deCopy full SHA for e1618de
1 file changed
src/components/Table/TablePricing.astro
@@ -188,7 +188,10 @@ const i18n = {
188
189
async function fetchPricingData() {
190
// product_slug come from Astro.props
191
- const response = await fetch(`https://www.azion.com/api/pricing/get/product_slug/${product_slug}`);
+ const response = await fetch(`https://vef4esszhdq.map.azionedge.net/api/pricing/get/product_slug/${product_slug}`);
192
+ if (!response.ok) {
193
+ throw new Error(`Pricing API returned ${response.status} for product_slug "${product_slug}"`);
194
+ }
195
const data = await response.json();
196
// Return empty array if API returns error object instead of array
197
return Array.isArray(data) ? data : [];
0 commit comments