-
Notifications
You must be signed in to change notification settings - Fork 3
/
nuxt.config.ts
43 lines (41 loc) · 1.08 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
components: true,
css: ['@/assets/css/main.scss'],
colorMode: { classSuffix: '' },
devtools: { enabled: true },
devServer: {
port: 3000,
https: {
cert: 'src/server/tls/localhost.crt',
key: 'src/server/tls/localhost.key',
},
},
modules: [
'@nuxt/ui',
'@nuxtjs/tailwindcss',
],
routeRules: {
// Allow cross-origin requests for the API (GPTStudio needs this)
'/api/**': { cors: true },
},
runtimeConfig: {
public: {
// Anything in here is exposed to the client, do not put secrets in here
googleAnalytics: '', // NUXT_PUBLIC_GOOGLE_ANALYTICS
},
// Things in this section are private and only available on the server side
databaseUrl: '', // NUXT_DATABASE_URL
parserUrl: '', // NUXT_PARSER_URL
githubToken: '', // NUXT_GITHUB_TOKEN
},
srcDir: 'src',
vite: {
build: {
manifest: true,
ssrManifest: true,
sourcemap: true,
},
css: { devSourcemap: true },
},
})