change config.previews.dir to config.previews.tmpDir