obsidian-visualiser/nuxt.config.ts

105 lines
2.3 KiB
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
import DatabaseSync from './modules/database.sync/module';
export default defineNuxtConfig({
modules: [
"@nuxtjs/color-mode",
"nuxt-security",
"@nuxtjs/tailwindcss",
"@vueuse/nuxt",
DatabaseSync
],
runtimeConfig: {
dbFile: 'db.sqlite',
templateFile: 'template.sqlite',
session: {
password: '699c46bd-9aaa-4364-ad01-510ee4fe7013'
}
},
tailwindcss: {
viewer: false,
config: {
theme: {
extend: {
boxShadow: {
raw: '0 0 0 4px var(--tw-shadow-color)'
}
},
colors: {
transparent: 'transparent',
current: 'currentColor',
light: {
red: '#e93147',
orange: '#ec7500',
yellow: '#e0ac00',
green: '#08b94e',
cyan: '#00bfbc',
blue: '#086ddd',
purple: '#7852ee',
pink: '#d53984',
0: "#ffffff",
5: "#fcfcfc",
10: "#fafafa",
20: "#f6f6f6",
25: "#e3e3e3",
30: "#e0e0e0",
35: "#d4d4d4",
40: "#bdbdbd",
50: "#ababab",
60: "#707070",
70: "#5c5c5c",
100: "#222222",
},
dark: {
red: '#fb464c',
orange: '#e9973f',
yellow: '#e0de71',
green: '#44cf6e',
cyan: '#53dfdd',
blue: '#027aff',
purple: '#a882ff',
pink: '#fa99cd',
0: '#1e1e1e',
5: '#212121',
10: '#242424',
20: '#262626',
25: '#2a2a2a',
30: '#363636',
35: '#3f3f3f',
40: '#555555',
50: '#666666',
60: '#999999',
70: '#b3b3b3',
100: '#dadada',
},
accent: {
purple: '#8a5cf5',
blue: '#53aaf5',
},
}
}
}
},
app: {
pageTransition: false,
layoutTransition: false
},
components: [
{
path: '~/components',
pathPrefix: false,
},
],
nitro: {
experimental: {
tasks: true,
},
scheduledTasks: {
'0 */1 * * *': ['sync']
}
},
security: {
rateLimiter: false
},
compatibilityDate: '2024-07-25',
})