app-server icon indicating copy to clipboard operation
app-server copied to clipboard

Serve and apply runtime configuration to static apps

npm version build status coverage status dependency status devDependency status

app-server

A tool to serve and apply runtime configuration to static apps.

This tool was created to allow create-react-app apps to be configured at runtime (serve-time) via environment variables, making them easily "dockerizable". It can however be used to serve and configure any static app.

Install

yarn add -D @staticdeploy/app-server

Guides

  • usage with create-react-app
  • deploy create-react-app apps with Docker
  • deploy generic static apps with Docker
  • serving assets with custom headers

Reference documentation

  • app-server config options
  • how requests are routed