35 lines
962 B
TypeScript
35 lines
962 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
|
|
import viteReact from '@vitejs/plugin-react'
|
|
import viteTsConfigPaths from 'vite-tsconfig-paths'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
import { wrapVinxiConfigWithSentry } from '@sentry/tanstackstart-react'
|
|
|
|
const config = defineConfig({
|
|
plugins: [
|
|
// this is the plugin that enables path aliases
|
|
viteTsConfigPaths({
|
|
projects: ['./tsconfig.json'],
|
|
}),
|
|
tailwindcss(),
|
|
tanstackStart({
|
|
customViteReactPlugin: true,
|
|
}),
|
|
viteReact(),
|
|
],
|
|
server: {
|
|
port: 3001,
|
|
},
|
|
})
|
|
|
|
export default config
|
|
// 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,
|
|
// })
|