Skip to content
/ pichost Public

Lightweight static server demo with _headers and _redirects support, gzip and brotli compression.

License

Notifications You must be signed in to change notification settings

Cizzuk/pichost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pichost

Lightweight static server demo with _headers and _redirects support, gzip and brotli compression.

Important

This server is intended for testing general static web hosting and is not recommended for production use.

Install

This package is published to GitHub Packages.

  1. Authenticate npm with GitHub Packages (once per machine):
npm login --scope=@cizzuk --registry=https://npm.pkg.github.com

You will need a GitHub account's Personal access tokens for authentication.

  1. Install globally:
npm i -g @cizzuk/pichost

Usage

pichost --dir _site --port 8080

Default directory is _site and default port is 8080.

Config file

Add pichost.config.json in your project root:

{
  "port": 8080,
  "dir": "_site"
}

CLI flags override config file values.

About

Lightweight static server demo with _headers and _redirects support, gzip and brotli compression.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages