When the object passed to defineNuxtConfig contains logic for enable devtools option the Nuxtr plugin annoyingly shows an endlessly spinning orb on the statusline.
18 lines
423 B
TypeScript
18 lines
423 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
const enableDevtools = !process.env.DISABLE_DEV_TOOLS
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-11-01',
|
|
devtools: { enabled: enableDevtools },
|
|
runtimeConfig: {
|
|
cookieSecretKeyFile: "",
|
|
vapidSubject: "",
|
|
vapidPrivateKeyFile: "",
|
|
public: {
|
|
defaultTimezone: "Europe/Oslo",
|
|
vapidPublicKey: "",
|
|
}
|
|
},
|
|
modules: [
|
|
"@pinia/nuxt",
|
|
],
|
|
})
|