Skip to content

VectorLogoZone/vlz-404

Repository files navigation

VLZ 404 Handler VectorLogoZone Logo

License

404 Handler is a dynamic svg generator for logos that are not done yet on VectorLogoZone.

Running

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>

Contributing

Contributions are welcome! Please follow the standard Github Fork & Pull Request Workflow

License

GNU Affero General Public License v3.0

Credits

Cloudflare Git Github Koa Node.js npm pino Twitter TypeScript Zeit

About

Dynamic 404 handler for VectorLogoZone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published