-
Notifications
You must be signed in to change notification settings - Fork 96
/
nuxt.config.ts
94 lines (91 loc) · 2.18 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import pkgJson from './package.json';
const composeVersion = () => {
if (!pkgJson || !pkgJson.version) {
return 'Unknown Version';
} else {
return `v${pkgJson.version}`;
}
};
const cronSchedule: Record<string, string[]> = {
// Every day, at 00:00.
'0 0 * * *': ['cron:expire-postings'],
};
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
nitro: {
experimental: {
tasks: true,
},
scheduledTasks: cronSchedule,
},
routeRules: {
'/admin/**': { ssr: false },
},
modules: [
'@nuxtjs/tailwindcss',
'nuxt-icon',
'@vee-validate/nuxt',
'@nuxtjs/google-fonts',
'nuxt-cropper',
'radix-vue/nuxt',
'nuxt-auth-utils',
],
googleFonts: {
families: {
'Noto+Sans': [400, 500, 600, 700],
Lato: [400, 500, 600, 700],
},
useStylesheet: true,
},
imports: {
dirs: ['composables/**/*.ts'],
},
devtools: { enabled: true },
/**
* Sensible defaults, overriden by env vars.
*/
runtimeConfig: {
db: {
host: 'localhost',
port: 5432,
user: 'postgres',
password: 'postgrespw',
database: 'vidur',
},
storage: {
engine: 'local',
local: {
baseDir: '/var/lib/vidur/data',
},
s3: {
accessKeyId: '',
secretAccessKey: '',
partition: '',
endpoint: '',
region: '',
},
},
bypassAdmin: false, // THIS IS ONLY FOR DEMO INSTANCES / DEV MODE. NOT MEANT TO BE USED AS A FULL FEATURE.
delayResponse: false, // IT WILL ONLY TAKE EFFECT IN DEV MODE, USEFUL TO DO REALISTIC TESTING.
services: {
profileCity: 'https://api.thenirvanalabs.com',
atlas: 'https://atlas.thenirvanalabs.com',
},
remoteAssetBase: '/assets',
oauth: {
clientId: 'profilecity-connect',
},
public: {
origin: 'http://localhost:3001',
github: 'https://github.com/profilecity/vidur',
discord: 'https://discord.gg/9ms5uYF8xF',
twitter: 'https://x.com/profilecityhq',
vidur: 'https://profilecity.xyz/vidur',
version: composeVersion(),
},
},
compatibilityDate: '2024-07-31',
});