forked from bcgov/business-dashboard-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
71 lines (71 loc) · 2.36 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
app: {
buildAssetsDir: '/src/',
head: {
htmlAttrs: { dir: 'ltr' },
link: [{ rel: 'icon', type: 'image/ico', href: '/favicon.ico' }]
}
},
colorMode: {
preference: 'light'
},
srcDir: 'src/',
css: [
'@mdi/font/css/materialdesignicons.css',
'@/assets/styles/base.scss',
'@/assets/styles/layout.scss'
],
ui: {
icons: ['mdi']
},
ssr: false,
imports: {
dirs: ['enums', 'interfaces', 'stores']
},
modules: ['@nuxt/ui', '@nuxtjs/i18n', '@pinia/nuxt', '@nuxtjs/tailwindcss'],
typescript: {
tsConfig: {
compilerOptions: {
noImplicitAny: false,
strictNullChecks: false,
strict: true
}
},
// NOTE: https://github.com/vuejs/language-tools/issues/3969
typeCheck: false
},
i18n: {
lazy: true,
defaultLocale: 'en',
langDir: './lang',
locales: [
{ code: 'en', file: 'en.json' }
]
},
runtimeConfig: {
public: {
// Keys within public, will be also exposed to the client-side
addressCompleteKey: process.env.VUE_APP_ADDRESS_COMPLETE_KEY,
authApiURL: `${process.env.VUE_APP_AUTH_API_URL || ''}${process.env.VUE_APP_AUTH_API_VERSION || ''}`,
authWebURL: process.env.VUE_APP_AUTH_WEB_URL || '',
businessesURL: process.env.VUE_APP_BUSINESSES_URL || '',
filingURL: process.env.VUE_APP_BUSINESS_FILING_URL || '',
createURL: process.env.VUE_APP_BUSINESS_CREATE_URL || '',
kcURL: process.env.VUE_APP_KEYCLOAK_AUTH_URL || '',
kcRealm: process.env.VUE_APP_KEYCLOAK_REALM || '',
kcClient: process.env.VUE_APP_KEYCLOAK_CLIENTID || '',
ldClientId: process.env.VUE_APP_LD_CLIENT_ID || '',
legalApiURL: `${process.env.VUE_APP_LEGAL_API_URL || ''}${process.env.VUE_APP_LEGAL_API_VERSION_2 || ''}`,
payApiURL: `${process.env.VUE_APP_PAY_API_URL || ''}${process.env.VUE_APP_PAY_API_VERSION || ''}`,
editApiURL: `${process.env.VUE_APP_BUSINESS_EDIT_URL || ''}`,
registryHomeURL: process.env.VUE_APP_REGISTRY_HOME_URL || '',
appEnv: `${process.env.VUE_APP_POD_NAMESPACE || 'unknown'}`,
requireLogin: true,
version: process.env.npm_package_version || '',
appName: process.env.npm_package_name || '',
appNameDisplay: 'BCROS Business Dashboard'
}
}
})