-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
42 lines (41 loc) · 1.21 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
import graphql from '@rollup/plugin-graphql';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
// debug: true,
modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt'],
runtimeConfig: {
public: {
siteName: 'Evangelický kancionál',
// itunesId: '1475375453',
siteUrl:
process.env.APP_URL ||
(process.env.VERCEL_URL
? 'https://' + process.env.VERCEL_URL
: false) ||
'http://localhost:3000',
titleSeparator: ' – ',
apiPath: process.env.API_PATH || '/api',
adminUrl: process.env.ADMIN_URL || '',
regenschoriUrl:
process.env.REGENSCHORI_URL || 'https://www.regenschori.cz',
proscholyUrl: process.env.PROSCHOLY_URL || 'https://zpevnik.proscholy.cz',
singleSongbook: 63, // 63: evangelicky kancional, 58 evangelicky zpevnik
},
},
vite: {
plugins: [graphql()], // Allow usage of .gql/.graphql files
},
nitro: {
routeRules: {
'/api': { proxy: process.env.REMOTE_API },
},
},
tailwindcss: {
configPath: '~/assets/tailwind.config.js',
},
// vue: {
// compilerOptions: {
// isCustomElement: (tag) => tag.startsWith('md-'),
// },
// },
});