From ccb00a136cba64b6fcfd664940339836427d4878 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Thu, 14 Mar 2024 01:02:08 +0000 Subject: [PATCH] fix: standardize runtime display names --- apps/website/src/components/RuntimeCard.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/website/src/components/RuntimeCard.vue b/apps/website/src/components/RuntimeCard.vue index 595aa1e6..609acd88 100644 --- a/apps/website/src/components/RuntimeCard.vue +++ b/apps/website/src/components/RuntimeCard.vue @@ -44,23 +44,27 @@ interface RuntimeInformation { } function getRuntimeInformation(name: string): RuntimeInformation { + // Name "serverless" runtimes standardly as " Edge" regardless of + // official product name (instead of "... JS Compute", "... Edge Functions", etc) + // to reduce length and simplify names. + switch (name) { case 'bun': return { name: 'Bun', github: 'https://github.com/oven-sh/bun', website: 'https://bun.sh' }; case 'deno': return { name: 'Deno', github: 'https://github.com/denoland/deno', website: 'https://deno.com' }; case 'fastly': - return { name: 'fastly', github: 'https://github.com/fastly/js-compute-runtime', website: 'https://www.fastly.com/products/compute' }; + return { name: 'Fastly Edge', github: 'https://github.com/fastly/js-compute-runtime', website: 'https://www.fastly.com/products/compute' }; case 'llrt': return { name: 'LLRT', github: 'https://github.com/awslabs/llrt' }; case 'netlify': - return { name: 'netlify', website: 'https://docs.netlify.com/edge-functions/overview' }; + return { name: 'Netlify Edge', website: 'https://docs.netlify.com/edge-functions/overview' }; case 'node': return { name: 'Node.js', github: 'https://github.com/nodejs/node', website: 'https://nodejs.org' } case 'edge-light': - return { name: 'edge-light', github: 'https://github.com/vercel/edge-runtime', website: 'https://vercel.com/docs/functions/runtimes/edge-runtime' }; + return { name: 'Vercel Edge', github: 'https://github.com/vercel/edge-runtime', website: 'https://vercel.com/docs/functions/runtimes/edge-runtime' }; case 'wasmer': - return { name: 'wasmer', github: 'https://github.com/wasmerio/winterjs', website: 'https://wasmer.io' }; + return { name: 'WinterJS', github: 'https://github.com/wasmerio/winterjs', website: 'https://wasmer.io' }; case 'workerd': return { name: 'workerd', github: 'https://github.com/cloudflare/workerd', website: 'https://developers.cloudflare.com/workers' } default: