#Check if Astro is running in development

2 messages · Page 1 of 1 (latest)

past echo
#

I'm sure there are several ways to check if Astro is running locally or in development but wanted to see what the easiest way is.

The reason for this is I have some 3rd-party scripts that don't work on localhost so want to disable those in dev.

quick knot