The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Viewing files at commit 0fc0266ffa14Commit detailsView latest

apps/dashboard/vite.config.ts 21 lines · 603 B · typescript
1
import { defineConfig, loadEnv } from 'vite';
2
import react from '@vitejs/plugin-react';
3
4
export default defineConfig(({ mode }) => {
5
  const env = loadEnv(mode, process.cwd(), '');
6
  return {
7
    root: 'apps/dashboard',
8
    plugins: [react()],
9
    define: {
10
      __DESCOPE_PROJECT_ID__: JSON.stringify(
11
        process.env.NEXT_PUBLIC_DESCOPE_PROJECT_ID ??
12
          process.env.DESCOPE_PROJECT_ID ??
13
          env.NEXT_PUBLIC_DESCOPE_PROJECT_ID ??
14
          env.DESCOPE_PROJECT_ID ??
15
          '',
16
      ),
17
    },
18
    server: { port: 5173 },
19
    build: { outDir: 'dist', emptyOutDir: true },
20
  };
21
});