1.0.1 • Published 5 years ago

@hyron/static-dir v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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

propertiestypedescription
pathstringindicates the path to the static directory on the server. The default is /public
prefixstringSpecifies the path on the url that will be used to access static files

Examle

appcfg.yaml

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

5 years ago

1.0.0

5 years ago