Try adding path.resolve for netlify file paths.

This commit is contained in:
Dillon Kearns 2021-12-29 21:57:35 -08:00
parent cd86a91fe5
commit 2a90dc9d51
2 changed files with 4 additions and 3 deletions

View File

@ -126,8 +126,7 @@ view maybeUrl sharedModel static =
[ Html.h1 [] [ Html.text "You're not logged in" ]
, Route.link Route.Login
[]
[ Html.text <| "Login"
]
[ Html.text <| "Login" ]
]
]
}

View File

@ -226,7 +226,9 @@ function jsonOrNull(string) {
async function runJob(app, filePath) {
pendingDataSourceCount += 1;
try {
const fileContents = (await fsPromises.readFile(filePath)).toString();
const fileContents = (
await fsPromises.readFile(path.resolve(filePath))
).toString();
const parsedFile = matter(fileContents);
pendingDataSourceResponses.push({