-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
49 lines (48 loc) · 1.17 KB
/
vite.config.js
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
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { VitePluginFonts } from 'vite-plugin-fonts'
import { sentryVitePlugin } from "@sentry/vite-plugin"
import { fileURLToPath, URL } from "node:url";
// https://vitejs.dev/config/
export default defineConfig({
build: {
sourcemap: true, // Source map generation must be turned on
},
plugins: [
vue(),
VitePluginFonts({
custom: {
families: [{
name: 'Code New Roman',
local: 'Code New Roman',
src: './src/assets/fonts/Code_New_Roman.woff',
}],
display: 'auto',
preload: true,
prefetch: false,
injectTo: 'head-prepend'
},
}),
sentryVitePlugin({
org: process.env.SENTRY_ORG || "shokohsc",
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
url: "https://glitchtip.shokohsc.home",
release: {
name: process.env.POD_NAME || '0.1.0',
}
}),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
host: true,
port: 80,
hmr: {
clientPort: 443
}
}
})