diff --git a/apps/web/component.yaml b/apps/web/component.yaml index 7ac828b..1f68d8b 100644 --- a/apps/web/component.yaml +++ b/apps/web/component.yaml @@ -104,9 +104,11 @@ spec: # their search index are served, an unknown path answers the site's own # 404 page with a 404 status, and one under /fr/ the French 404 page # (lang="fr") with a 404 status (the Worker). `-L` follows the directory - # redirect (/products → /products/). Each response is buffered before grep - # so an early match cannot SIGPIPE curl. - smokeCommand: "html=$(curl -sfL \"${DEPLOYED_URL}/\") && echo \"${html}\" | grep -q 'hreflang=\"fr\"' && products=$(curl -sfL \"${DEPLOYED_URL}/products\") && echo \"${products}\" | grep -q '/products/item-a765/' && curl -sfL -o /dev/null \"${DEPLOYED_URL}/welcome-to-docs/\" && curl -sf -o /dev/null \"${DEPLOYED_URL}/pagefind/pagefind.js\" && test \"$(curl -s -o /dev/null -w '%{http_code}' \"${DEPLOYED_URL}/no-such-page\")\" = 404 && test \"$(curl -s -o /dev/null -w '%{http_code}' \"${DEPLOYED_URL}/fr/no-such-page\")\" = 404 && fr=$(curl -s \"${DEPLOYED_URL}/fr/no-such-page\") && echo \"${fr}\" | grep -q '