File size: 735 Bytes
5285b72
23fa199
5285b72
 
 
 
 
 
 
edd44de
5285b72
 
 
edd44de
5285b72
 
 
 
 
23fa199
5285b72
 
 
 
 
 
23fa199
 
 
 
 
5285b72
23fa199
 
 
 
5285b72
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
import { vitePlugin as remix } from "@remix-run/dev"
import { sentryVitePlugin } from "@sentry/vite-plugin"
import { defineConfig } from "vite"
import tsconfigPaths from "vite-tsconfig-paths"

export default defineConfig({
  server: {
    proxy: {
      "/graphql": {
        target: "http://127.0.0.1:7860",
        changeOrigin: false,
      },
      "/ws/graphql": {
        target: "ws://127.0.0.1:7860",
        changeOrigin: false,
        ws: true,
      },
    },
  },

  plugins: [
    remix({
      appDirectory: "frontend",
      ssr: false,
    }),
    tsconfigPaths(),
    sentryVitePlugin({
      org: "hicustomer",
      project: "govsearch",
      telemetry: true,
    }),
  ],

  build: {
    sourcemap: true,
  },
})