mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
## Summary - Reverts lazy JWT_SECRET initialization — keeps eager fail-fast at module load - Adds `JWT_SECRET` secret to both `deploy_cfwebapp_to_azure.yml` and `nextjs-build.yaml` CI workflows so `next build` page data collection succeeds for the `/codeflash/auth/oauth/token` route ## Context The deploy workflow ([run #24425211765](https://github.com/codeflash-ai/codeflash-internal/actions/runs/24425211765/job/71357530269)) was failing because `JWT_SECRET` isn't available during CI build, causing an eager throw at module load time. The secret already exists as a GitHub repo secret.
17 lines
390 B
TypeScript
17 lines
390 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
import react from "@vitejs/plugin-react"
|
|
import path from "path"
|
|
import type { PluginOption } from "vite"
|
|
|
|
export default defineConfig({
|
|
plugins: [react()] as PluginOption[],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
},
|
|
})
|