-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
40 lines (35 loc) · 1.14 KB
/
vite.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
import mdx from "@mdx-js/rollup"
import { vitePlugin as remix } from "@remix-run/dev"
import { installGlobals } from "@remix-run/node"
import { sentryVitePlugin } from "@sentry/vite-plugin"
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin"
import { vercelPreset } from "@vercel/remix/vite"
import remarkFrontmatter from "remark-frontmatter"
import remarkMdxFrontmatter from "remark-mdx-frontmatter"
import { defineConfig } from "vite"
import tsconfigPaths from "vite-tsconfig-paths"
installGlobals()
// SST is 1 if SST is used for deployment
const presets = process.env.SST === "1" ? [] : [vercelPreset()]
export default defineConfig({
build: {
assetsInlineLimit(filePath) {
if (filePath.includes("/favicon/")) {
return false
}
// return nothing => default behavior
},
sourcemap: true
},
plugins: [
mdx({ remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter] }),
remix({ presets }),
tsconfigPaths(),
vanillaExtractPlugin(),
sentryVitePlugin({
org: "sebastian-software-gmbh",
project: "sebastian-software-de",
authToken: process.env.SENTRY_AUTH_TOKEN
})
]
})