fix: remove unused graphqlUrl variable in product-banner-data route

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 10:02:36 +02:00
parent 7ebb7e899d
commit f650225c98
@@ -40,7 +40,6 @@ export async function GET(req: NextRequest) {
} }
} else if (ref) { } else if (ref) {
// Recherche par SKU via GraphQL // Recherche par SKU via GraphQL
const graphqlUrl = baseUrl.replace('/admin/api/', '/admin/api/').replace('products', '').replace(/\/$/, '') + '/../graphql.json'
const domain = process.env.SHOPIFY_STORE_DOMAIN const domain = process.env.SHOPIFY_STORE_DOMAIN
const gqlRes = await fetch(`https://${domain}/admin/api/${API_VERSION}/graphql.json`, { const gqlRes = await fetch(`https://${domain}/admin/api/${API_VERSION}/graphql.json`, {
method: 'POST', method: 'POST',