Skip to content

Commit

Permalink
fix: write other server build output files
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Jul 21, 2022
1 parent 4b1f756 commit 263d682
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/remix-dev/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,10 @@ async function writeServerBuildResult(
let contents = Buffer.from(file.contents).toString("utf-8");
contents = contents.replace(/"route:/gm, '"');
await fse.writeFile(file.path, contents);
} else {
let dir = path.dirname(file.path);
await fse.ensureDir(dir);
await fse.writeFile(file.path, file.contents);
}
}
}

0 comments on commit 263d682

Please sign in to comment.