Something's wrong here... component? #2432
Answered
by
juanpprieto
patrick-schneider-latori
asked this question in
Help
-
Where can we adjust the error component which gets loaded if there's an error on the website? I really can't find anything documented on this: First of all we want to send events to Analytics to track how often an error page occurs and second to that we want to i18n this page to customers. |
Beta Was this translation helpful? Give feedback.
Answered by
juanpprieto
Jan 13, 2023
Replies: 1 comment 1 reply
-
You can configure a custom error page via they hydrogen config. Here is an example |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
patrick-schneider-latori
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can configure a custom error page via they hydrogen config.
https://github.com/Shopify/hydrogen/blob/550dac284947f0904c6e6f9e945895fe90f837bd/packages/playground/server-components/hydrogen.config.js#L21
Here is an example
https://github.com/Shopify/hydrogen/blob/550dac284947f0904c6e6f9e945895fe90f837bd/packages/playground/server-components/src/500Error.tsx