Initial Commit
This commit is contained in:
34
vite.config.ts
Normal file
34
vite.config.ts
Normal file
@ -0,0 +1,34 @@
|
||||
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,
|
||||
// })
|
Reference in New Issue
Block a user