From d874212092c5fc35109b9a333bb38b6ea9dc8cc8 Mon Sep 17 00:00:00 2001 From: ikoamu Date: Thu, 3 Oct 2024 23:18:23 +0900 Subject: feat: Add .env file with default section open flag(local.sh) --- local.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'local.sh') diff --git a/local.sh b/local.sh index d1be019..c26ff20 100755 --- a/local.sh +++ b/local.sh @@ -10,6 +10,13 @@ if [ ! -d "org-roam-ui" ]; then git clone -b publish-org-roam-ui https://github.com/ikoamu/org-roam-ui fi +# create .env file +pushd org-roam-ui +if [ ! -f ".env" ]; then + echo "NEXT_PUBLIC_DEFAULT_SECTION_OPEN=true" > .env +fi +popd + # Generate data for org-roam-ui npm install npm run generate:graphdata --script_params=$ROAM_DB_PATH -- cgit