No ability to change cache directory path
yankos opened this issue · 2 comments
yankos commented
Expected behaviour
const server = require("highcharts-export-server");
server.setOptions({
other: {
cacheDir: "/tmp/highcharts"
}
});
Highcharts will use other.cacheDir
from configuration instead hardcoded const cachePath = join(__dirname, '.cache');
.
Actual behaviour
Highcharts use hardcoded const cachePath = join(__dirname, '.cache');
.
Which caused an error when cachePath
is not writable.
We package dependencies into a system package (deb, rpm, etc.) to speed-up deployment. So user can not write into the "node_modules" directory and it is causes a crash of Highcharts export server.
jszuminski commented
This has been fixed on the master
branch with this pull request: #488 so this should no longer be an issue from v4.0.0.
jszuminski commented
Completed via #488. Will be a part of v4.0.0.