We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5933b0c commit 1b2ad2bCopy full SHA for 1b2ad2b
core.sh
@@ -485,9 +485,7 @@ writeHttpResponse() {
485
}
486
487
findRoutes() {
488
- local SIZE
489
- SIZE=$(stat -c "%s" $ROUTES_CACHE)
490
- if [[ $SIZE -eq 0 ]]; then
+ if [[ -z $ROUTES_CACHE ]] || [[ $(stat -c "%s" $ROUTES_CACHE) -eq 0 ]]; then
491
cd pages
492
find . -type f,l -iname '*.sh' | sed 's@^\./@@' | tee $ROUTES_CACHE
493
else
start.sh
@@ -10,7 +10,9 @@ if [[ "${DEV:-true}" == "true" ]] && [[ ! -z "$TAILWIND" ]]; then
10
PID=$!
11
fi
12
13
-export ROUTES_CACHE=$(mktemp)
+if [[ "${DEV:-true}" != "true" ]]; then
14
+ export ROUTES_CACHE=$(mktemp)
15
+fi
16
17
# remove any old subscriptions; they are no longer valid
18
rm -rf pubsub
0 commit comments