@hyron/static-dir

1.0.1 • Public • Published

static-dir is an addons to allow returning a client file to a folder on the server side

Usage

1. Install

npm i @hyron/static-dir

2. Declare addons to target instance

server/app.json

{
    "base_url" : "http://localhost:3000",
    "addons" : {
        "static-dir" : "@hyron/static-dir"
    }
}

Config

Below are the settings of static-dir addons that you can declare when using

properties type description
path string indicates the path to the static directory on the server. The default is /public
prefix string Specifies the path on the url that will be used to access static files

Examle

appcfg.yaml

static-dir:
  path: /public
  prefix: /file

Readme

Keywords

Package Sidebar

Install

npm i @hyron/static-dir

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • spatocode
  • thangphung