Features:
- add the value of the
basePathoption as theBASE_PATHproperty of thewindow.APP_CONFIGobject defined by the configuration script - when a
Content-Security-Policyheader is defined for an html asset, patch its value to whitelist (via sha256 source) the configuration script injected in the html
Features:
- add option
--headersto allow attaching custom headers to responses - add option
--fallbackStatusCodeto change the status code with which the fallback asset is served - add option
--configurationto allow passing the JSON configuration object directly (not just via env variables) - add option
--configto 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
--configKeyPrefixrenamed--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-byheader from responses
Breaking changes:
- update docker images to
node:lts(10)
Deprecations:
- option
--fallbackResourcerenamed--fallbackAssetPath(to use the same name as StaticDeploy)
Fixes:
- fix typo in
--rootoption description
Breaking changes:
-
asset matching algorithm changed:
- when requesting
/path, if both files/path.htmland/path/index.htmlexist,/path.htmlis 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-serverbin (but added@staticdeploy/app-configas dependency, which provides the samedev-config-serverbin) -
removed exported function
getConfigScriptHandler(if needed, should now be imported from@staticdeploy/app-config)
Deprecations:
- option
--indexrenamed--fallbackResource - option
--baseUrlrenamed--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
binfolder to npm
Features:
dev-config-serverbinary 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.