Skip to content

tinper-uba/uba-server-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uba-server-static

npm version devDependency Status NPM downloads


NPM

Installation

$ npm install uba-server-static -D

Usage

Edit the .ubarc file

{
    "static": [{
        "dir": "src/static"
    },{
        "dir": "public",
        "options":{
            "maxAge":"1d"
        }
    }]
}

API

dir

  • dir directory string. nothing above this root directory can be served

Look at more https://www.npmjs.com/package/serve-static#api

About

static server plugin for uba-server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published