Add DISABLE_DEV_TOOLS env to disable Nuxt dev tools
All checks were successful
/ build (push) Successful in 1m14s
/ deploy (push) Successful in 15s

The dev tools built into Nuxt take up way too much resources to run on
low end hardware.  Add config to disable it.
This commit is contained in:
Hornwitser 2025-05-31 22:14:06 +02:00
parent 2cb56247be
commit 25793fecb8

View file

@ -1,7 +1,7 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
devtools: { enabled: !process.env.DISABLE_DEV_TOOLS },
runtimeConfig: {
cookieSecretKeyFile: "",
vapidSubject: "",