Skip to content
Discussion options

You must be logged in to vote

Thanks, now it's clear 🔝

Currently is there a way to add a custom property (e.g. value from globaThis or env var) to /pages/+config and then read it in /pages/+Layout or the only way is with the /pages/+data (#1833)?

Edit: Probably the only way is with #1833 because +config can't be used at runtime (source).

Edit2: In my use case, I confirm that #1833 is the only way with +data.once

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@brillout
Comment options

@rtritto
Comment options

Answer selected by rtritto
@brillout
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants