Add DISABLE_DEV_TOOLS env to disable Nuxt dev tools
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:
parent
2cb56247be
commit
25793fecb8
1 changed files with 1 additions and 1 deletions
|
@ -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: "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue