Hello!
Summary
Users can experience 500 errors when accessing via direct link packages (ie: https://replacements.fyi/is-number) which show display highlighted code examples. https://replacements.fyi/left-pad still works. Cloudflare Worker logs will provide better insights on why it's actually failing.
Steps to reproduce
- Navigate to https://replacements.fyi/is-number
- Experience a 500 error
Investigation
Going to the search for is-number, the link still works. https://replacements.fyi/left-pad still works too. I believe the failure is strongly correlated with the SSR highlighter invocation in the Worker for simple packages with examples:
{:else if data.type === 'simple'}
{#if data.example}
{@html await highlight(data.example)}
{/if}
Native, documented, and removal replacements do not use that branch, so they avoid the failing SSR operation
Hello!
Summary
Users can experience 500 errors when accessing via direct link packages (ie: https://replacements.fyi/is-number) which show display highlighted code examples. https://replacements.fyi/left-pad still works. Cloudflare Worker logs will provide better insights on why it's actually failing.
Steps to reproduce
Investigation
Going to the search for
is-number, the link still works. https://replacements.fyi/left-pad still works too. I believe the failure is strongly correlated with the SSR highlighter invocation in the Worker forsimplepackages withexamples:Native, documented, and removal replacements do not use that branch, so they avoid the failing SSR operation