repo_description: A simple example implementation of the VoiceRAG pattern to power interactive voice generative AI experiences using RAG with Azure AI Search and Azure OpenAI's gpt-4o-realtime-preview model. 
repo_topics: ai-azd-templates azd-templates azure azure-ai-search generative-ai gpt language-model openai rag retrieval-augmented-generation search vector-database
code: import path from "path";
  import react from "@vitejs/plugin-react";
  import { defineConfig } from "vite";
  
  // https://vitejs.dev/config/
  export default defineConfig({
      plugins: [react()],
      build: {
          outDir: "../backend/static",
          emptyOutDir: true,
          sourcemap: true
      },
      resolve: {
          preserveSymlinks: true,
          alias: {
              "@": path.resolve(__dirname, "./src")
          }
      },
      server: {
          proxy: {
              "/realtime": {
                  target: "ws://localhost:8765",
                  ws: true,
                  rewriteWsOrigin: true
              }
          }
      }
  });
  