Use the authentication method system for the demo login and the generated accounts. This makes it possible to toggle it off on production systems as these shouldn't have it enabled at all.
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
/*
|
|
SPDX-FileCopyrightText: © 2025 Hornwitser <code@hornwitser.no>
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
const enableDevtools = !process.env.DISABLE_DEV_TOOLS
|
|
const oneHourSeconds = 60 * 60;
|
|
const oneDaySeconds = 24 * oneHourSeconds;
|
|
export default defineNuxtConfig({
|
|
experimental: { renderJsonPayloads: true },
|
|
compatibilityDate: '2024-11-01',
|
|
devtools: { enabled: enableDevtools },
|
|
app: {
|
|
head: {
|
|
titleTemplate: "%s - Owltide",
|
|
htmlAttrs: {
|
|
lang: "en",
|
|
},
|
|
link: [
|
|
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
|
|
],
|
|
},
|
|
},
|
|
runtimeConfig: {
|
|
cookieSecretKeyFile: "",
|
|
sessionRotatesTimeout: 1 * oneHourSeconds,
|
|
sessionDiscardTimeout: 14 * oneDaySeconds,
|
|
vapidSubject: "",
|
|
vapidPrivateKeyFile: "",
|
|
telegramBotTokenFile: "",
|
|
public: {
|
|
defaultTimezone: "Europe/Oslo",
|
|
defaultLocale: "en-GB",
|
|
authDemoEnabled: false,
|
|
authTelegramEnabled: false,
|
|
telegramBotUsername: "",
|
|
vapidPublicKey: "",
|
|
}
|
|
},
|
|
modules: [
|
|
"@nuxt/test-utils/module",
|
|
"@pinia/nuxt",
|
|
],
|
|
})
|