- pgSchema "mesh" with 4 tables isolating the peer mesh domain - Enums: visibility, transport, tier, role - audit_log is metadata-only (E2E encryption enforced at broker/client) - Cascade on mesh delete, soft-delete via archivedAt/revokedAt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
605 B
TypeScript
27 lines
605 B
TypeScript
import { defineEnv } from "envin";
|
|
import * as z from "zod";
|
|
|
|
import { envConfig, NodeEnv } from "@turbostarter/shared/constants";
|
|
|
|
import { sharedPreset } from "../../utils/env";
|
|
|
|
import type { Preset } from "envin/types";
|
|
|
|
export const preset = {
|
|
id: "polar",
|
|
server: {
|
|
POLAR_ACCESS_TOKEN: z.string(),
|
|
POLAR_WEBHOOK_SECRET: z.string(),
|
|
POLAR_ORGANIZATION_SLUG: z.string().optional(),
|
|
},
|
|
extends: [sharedPreset],
|
|
} as const satisfies Preset;
|
|
|
|
export const env = defineEnv({
|
|
...envConfig,
|
|
...preset,
|
|
shared: {
|
|
NODE_ENV: z.enum(NodeEnv).default(NodeEnv.DEVELOPMENT),
|
|
},
|
|
});
|