aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorikoamu <ikoamu@gmail.com>2024-10-03 23:18:23 +0900
committerikoamu <ikoamu@gmail.com>2024-10-03 23:18:23 +0900
commitd874212092c5fc35109b9a333bb38b6ea9dc8cc8 (patch)
tree663d05205fb5556bc70c6b5ba208f36010f355b5
parent8a30681ecd443153fb7f3a65a662cf873d3df1a7 (diff)
feat: Add .env file with default section open flag(local.sh)
-rwxr-xr-xlocal.sh7
1 files changed, 7 insertions, 0 deletions
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