Try reading relative to root of repo for netlify function.

This commit is contained in:
Dillon Kearns 2021-12-30 09:45:27 -08:00
parent e9926979d3
commit 8851ab402d

View File

@ -58,7 +58,7 @@ data routeParams =
username
|> LoggedInInfo
|> DataSource.succeed
|> DataSource.andMap (DataSource.File.rawFile "content/secret-note.txt")
|> DataSource.andMap (DataSource.File.rawFile "examples/pokedex/content/secret-note.txt")
|> DataSource.map LoggedIn
|> DataSource.map PageServerResponse.RenderPage
)