#Check if Astro is running in development
2 messages · Page 1 of 1 (latest)
There's a few ways you could do that. If your imports are in an .astro file, you could use import.meta.env.mode or similar variables provided by Vite https://vitejs.dev/guide/env-and-mode.html#modes