404 Handler is a dynamic svg generator for logos that are not done yet on VectorLogoZone.
It is a TypeScript node.js app, so:
npm install
npm run build
npm run start
See the run.sh
for how I run it in development.
On the main site, 404 errors need to be proxied (or redirected if they can't be proxied). For S3 buckets, they can only be redirected, with a rule like:
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>404.vectorlogo.zone</HostName>
<HttpRedirectCode>303</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>
Contributions are welcome! Please follow the standard Github Fork & Pull Request Workflow