mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-29 14:56:36 +03:00
Distill shared data.
This commit is contained in:
parent
2dd7394f07
commit
d15a191d5a
@ -445,7 +445,11 @@ main =
|
||||
, toJsPort = toJsPort
|
||||
, fromJsPort = fromJsPort identity
|
||||
, data = dataForRoute
|
||||
, sharedData = Shared.template.data
|
||||
, sharedData =
|
||||
Shared.template.data
|
||||
|> DataSource.distillBytes "SharedData"
|
||||
(encodeBytes Shared.w3_encode_Data)
|
||||
(decodeBytes Shared.w3_decode_Data)
|
||||
, apiRoutes = ${
|
||||
phase === "browser"
|
||||
? `\\_ -> []`
|
||||
|
Loading…
Reference in New Issue
Block a user