mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-23 07:31:25 +00:00
huh. not sure where this broke
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = function() {
|
|||||||
let dest = OUTPUT_DIR + pathname;
|
let dest = OUTPUT_DIR + pathname;
|
||||||
|
|
||||||
const type = res.headers.get('Content-Type');
|
const type = res.headers.get('Content-Type');
|
||||||
if (type.startsWith('text/html;')) dest += '/index.html';
|
if (type.startsWith('text/html')) dest += '/index.html';
|
||||||
|
|
||||||
sander.writeFileSync(dest, body);
|
sander.writeFileSync(dest, body);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user