-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
111 lines (109 loc) · 3.01 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import { sentryVitePlugin } from '@sentry/vite-plugin';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
css: [
'highlight.js/styles/atom-one-dark-reasonable.css',
'pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css',
],
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
modules: [
'@nuxtjs/tailwindcss',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@vueuse/nuxt',
'@formkit/auto-animate/nuxt',
'nuxt-headlessui',
],
pinia: {
autoImports: ['defineStore', 'acceptHMRUpdate'],
},
app: {
head: {
title: 'Remak',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
// { name: 'msapplication-TileColor', content: '#1F8CE6' },
{ name: 'theme-color', content: '#1F8CE6' },
{ key: 'og:type', property: 'og:type', content: 'website' },
{ key: 'og:site_name', property: 'og:site_name', content: 'Remak' },
{ key: 'og:title', property: 'og:title', content: 'Remak' },
{
key: 'og:description',
property: 'og:description',
content: 'Your Personal AI Knowledge Base.',
},
{
key: 'og:image',
property: 'og:image',
content: 'https://remak.io/og-image.png',
},
{
key: 'og:image:secure_url',
property: 'og:image:secure_url',
content: 'https://remak.io/og-image.png',
},
{
key: 'og:image:type',
property: 'og:image:type',
content: 'image/png',
},
{ key: 'og:image:width', property: 'og:image:width', content: '1800' },
{
key: 'og:image:height',
property: 'og:image:height',
content: '1800',
},
{
key: 'twitter:description',
property: 'twitter:description',
content: 'Your Personal AI Knowledge Base.',
},
{
key: 'twitter:image',
property: 'twitter:image',
content: 'https://remak.io/og-image.png',
},
{
key: 'twitter:image:alt',
property: 'twitter:image:alt',
content: 'Remak',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
},
runtimeConfig: {
public: {
apiBaseUrl: process.env.API_BASE_URL ?? 'https://api.remak.io',
sentry: {
dsn:
process.env.SENTRY_DSN ??
'https://[email protected]/4506146594619392',
},
},
},
vite: {
build: {
sourcemap: true, // Source map generation must be turned on
},
plugins: [
// Put the Sentry vite plugin after all other plugins
sentryVitePlugin({
org: 'rootabyss',
project: 'remak',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
},
sourcemap: {
server: true,
client: true,
},
});