mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 21:02:33 +03:00
Try adding path.resolve for netlify file paths.
This commit is contained in:
parent
cd86a91fe5
commit
2a90dc9d51
@ -126,8 +126,7 @@ view maybeUrl sharedModel static =
|
|||||||
[ Html.h1 [] [ Html.text "You're not logged in" ]
|
[ Html.h1 [] [ Html.text "You're not logged in" ]
|
||||||
, Route.link Route.Login
|
, Route.link Route.Login
|
||||||
[]
|
[]
|
||||||
[ Html.text <| "Login"
|
[ Html.text <| "Login" ]
|
||||||
]
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -226,7 +226,9 @@ function jsonOrNull(string) {
|
|||||||
async function runJob(app, filePath) {
|
async function runJob(app, filePath) {
|
||||||
pendingDataSourceCount += 1;
|
pendingDataSourceCount += 1;
|
||||||
try {
|
try {
|
||||||
const fileContents = (await fsPromises.readFile(filePath)).toString();
|
const fileContents = (
|
||||||
|
await fsPromises.readFile(path.resolve(filePath))
|
||||||
|
).toString();
|
||||||
const parsedFile = matter(fileContents);
|
const parsedFile = matter(fileContents);
|
||||||
|
|
||||||
pendingDataSourceResponses.push({
|
pendingDataSourceResponses.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user