Features:
- add the value of the
basePath
option as theBASE_PATH
property of thewindow.APP_CONFIG
object defined by the configuration script - when a
Content-Security-Policy
header is defined for an html asset, patch its value to whitelist (via sha256 source) the configuration script injected in the html
Features:
- add option
--headers
to allow attaching custom headers to responses - add option
--fallbackStatusCode
to change the status code with which the fallback asset is served - add option
--configuration
to allow passing the JSON configuration object directly (not just via env variables) - add option
--config
to allow passing config options via config file
Breaking changes:
- remove deprecated options
--index
,--fallbackResource
, and--baseUrl
- remove option
--selector
(as StaticDeploy only supportsscript#app-config
) - option
--configKeyPrefix
renamed--configurationKeyPrefix
(to avoid confusion between the termsconfig
, referring to the config options taken by app-server, andconfiguration
, the JSON configuration object inject into static apps) - use StaticDeploy core module for implementing routing logic (before the logic was more or less a copy-paste of StaticDeploy's code)
Fixes:
- remove
x-powered-by
header from responses
Breaking changes:
- update docker images to
node:lts
(10)
Deprecations:
- option
--fallbackResource
renamed--fallbackAssetPath
(to use the same name as StaticDeploy)
Fixes:
- fix typo in
--root
option description
Breaking changes:
-
asset matching algorithm changed:
- when requesting
/path
, if both files/path.html
and/path/index.html
exist,/path.html
is served (used to be the contrary) - some paths that responded 404 now respond the fallback resource (issue #3)
- when requesting
-
log format changed (from Standard Apache Common Log Format to JSON)
-
removed
dev-config-server
bin (but added@staticdeploy/app-config
as dependency, which provides the samedev-config-server
bin) -
removed exported function
getConfigScriptHandler
(if needed, should now be imported from@staticdeploy/app-config
)
Deprecations:
- option
--index
renamed--fallbackResource
- option
--baseUrl
renamed--basePath
Fixes:
- serve fallback resource even when path contains dots (issue #3)
- 301 to
/baseUrl/
on GET/baseUrl
(issue #1)
Features:
- add option
--configKeyPrefix
Fixes:
- publish
bin
folder to npm
Features:
dev-config-server
binary to serve configuration during development
Publish useful package metadata to npm.
First version published to npm.
Initial release. Not published on npm due to package access issues.