mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 06:54:03 +03:00
Try new filename resolution for netlify function.
This commit is contained in:
parent
2a90dc9d51
commit
d0d205bee4
@ -126,7 +126,8 @@ view maybeUrl sharedModel static =
|
||||
[ Html.h1 [] [ Html.text "You're not logged in" ]
|
||||
, Route.link Route.Login
|
||||
[]
|
||||
[ Html.text <| "Login" ]
|
||||
[ Html.text <| "Login"
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ async function runJob(app, filePath) {
|
||||
pendingDataSourceCount += 1;
|
||||
try {
|
||||
const fileContents = (
|
||||
await fsPromises.readFile(path.resolve(filePath))
|
||||
await fsPromises.readFile(path.join(__dirname, filePath))
|
||||
).toString();
|
||||
const parsedFile = matter(fileContents);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user