forked from CarlosZiegler/fullstack-start-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
31 lines (28 loc) · 845 Bytes
/
app.config.ts
File metadata and controls
31 lines (28 loc) · 845 Bytes
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
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "@tanstack/react-start/config";
import viteTsConfigPaths from "vite-tsconfig-paths";
import { wrapVinxiConfigWithSentry } from "@sentry/tanstackstart-react";
const config = defineConfig({
tsr: {
appDirectory: "src",
routeToken: "layout",
autoCodeSplitting: true,
},
vite: {
plugins: [
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tailwindcss(),
],
},
});
export default wrapVinxiConfigWithSentry(config, {
org: process.env.VITE_SENTRY_ORG,
project: process.env.VITE_SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
// Only print logs for uploading source maps in CI
// Set to `true` to suppress logs
silent: !process.env.CI,
});