Skip to content

Commit 6b5b75a

Browse files
ilyaZarColinFay
authored andcommitted
chore: adjust app_config.R to changes
1 parent 6e876a6 commit 6b5b75a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

inst/shinyexample/R/app_config.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ get_golem_config <- function(
3232
)
3333
),
3434
use_parent = TRUE,
35-
# Modify this if your config file is somewhere else
36-
file = app_sys("golem-config.yml")
35+
# If you don't want to use the default config file:
36+
# - replace the function call and write a hard coded path to your config file
37+
# - set a `GOLEM_CONFIG_PATH` environment variable that points to the file
38+
# (which will be picked up by golem::guess_where_config() internally)
39+
file = golem::get_current_config()
3740
) {
3841
config::get(
3942
value = value,

0 commit comments

Comments
 (0)