- Strongly type company-service and API routes - Fix Next.js searchParams (promise) in admin/machines page - Add vitest module marker + stub for tsconfig-paths/register - Use Convex query in client as primary fallback for machine details - Replace any casts in admin machines components Build + lint are clean locally; details page no longer skeleton-loops.
10 lines
474 B
TypeScript
10 lines
474 B
TypeScript
// Node-only Vitest bootstrap: keep browser runs free from process dependencies.
|
|
if (typeof process !== "undefined" && process.versions?.node) {
|
|
await import("tsconfig-paths/register")
|
|
|
|
process.env.BETTER_AUTH_SECRET = process.env.BETTER_AUTH_SECRET ?? "test-secret"
|
|
process.env.NEXT_PUBLIC_APP_URL = process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000"
|
|
process.env.BETTER_AUTH_URL = process.env.BETTER_AUTH_URL ?? process.env.NEXT_PUBLIC_APP_URL
|
|
}
|
|
|
|
export {}
|