Verified Commit e8d1ebbe authored by Aral Balkan's avatar Aral Balkan
Browse files

Fixes #202: archival cascade routes no longer break

parent 3673c009
......@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [13.0.4] - 2020-06-25
### Fixed
- Archival cascade routes no longer break when server is started from outside of folder to serve.
## [13.0.3] - 2020-06-24
### Fixed
......
......@@ -1316,7 +1316,7 @@ class Site {
archivalCascade.forEach(archivePath => {
archiveNumber++
this.log(` 🌱 ❨site.js❩ Evergreen web: serving archive #${archiveNumber}`)
this.app.use(express.static(archivePath))
this.app.use(express.static(archivePath.startsWith('/') ? archivePath : path.join(absolutePathToServe, archivePath)))
})
}
}
......
{
"name": "@small-tech/site.js",
"version": "13.0.3",
"version": "13.0.4",
"description": "Small Web construction set.",
"keywords": [
"web server",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment