Giter VIP home page Giter VIP logo

superstatic's Issues

Exclude Option

There should be an exclude key that is an array of file globs (relative to the root) for files to effectively purge from the list.

Password Protected Builds

I should be able to specify an auth key with username and password. If the auth key is set in the config, use HTTP Basic Auth to verify username and password before serving up files.

Don't watch file system. Just read it.

We run into issues when we start a superstatic server and the directly has a huge file list.

Instead of watching files for changes and reloading the file list, we just check the current working directory if the file exists on each request

Add "redirects" configuration

We need to support redirection via the superstatic JSON config. Like so:

{
  "redirects": {
    "some/path/goes/here":"other/path/here",
    "some/wilcard/:segment/path":"other/wilcard/:segment/path",
  }
}

By default, redirects should use the 301 status. However, the user can specify a custom status like so:

{
  "redirects": {
    "some/path/here": [302, "other/path/here"]
  }
}

T

hrefs with preceding slash don't always work

from the divshot.io docs

<a class="list-group-item" href="/integrations/jekyll.html">Jekyll</a>

This works from the home page, but if you're on a sub page, it does a funky redirect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.