Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .env.local.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,3 @@ VORTEX_AUTHZ_WORKFLOW_ID=""
# entitlements
BILLING_SERVICE_API_KEY=""
BILLING_WEBHOOK_SECRET=""

# feature flags
FLAGS_CLIENT_KEY=
3 changes: 0 additions & 3 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ BILLING_BASE_URL="https://api.billing.omni.dev"
# authz
AUTHZ_PROVIDER_URL="https://api.access.omni.dev"
AUTHZ_ENABLED="true"

# feature flags
FLAGS_API_HOST=https://flags.omni.dev/api
5 changes: 0 additions & 5 deletions src/lib/config/env.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export const {
VORTEX_API_KEY,
// Service key for AuthZ API (service-to-service auth)
AUTHZ_SERVICE_KEY,
// Feature flags
FLAGS_API_HOST,
FLAGS_CLIENT_KEY,
// Build metadata
BUILD_VERSION,
// Meilisearch (unified search)
Expand Down Expand Up @@ -84,8 +81,6 @@ if (!VORTEX_API_KEY)
console.warn("VORTEX_API_KEY not set, event streaming auth disabled");
if (!AUTHZ_SERVICE_KEY)
console.warn("AUTHZ_SERVICE_KEY not set, AuthZ service auth disabled");
if (!FLAGS_API_HOST)
console.warn("FLAGS_API_HOST not set, feature flags disabled");
if (!MEILISEARCH_URL) console.warn("MEILISEARCH_URL not set, search disabled");
if (!S3_BUCKET)
console.warn("S3_BUCKET not set, task attachments disabled (uploads no-op)");
Expand Down
25 changes: 0 additions & 25 deletions src/lib/middleware/maintenance.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/lib/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
createAuthzProvider,
createBillingProvider,
createEventsProvider,
createFlagProvider,
createStorageProvider,
} from "@omnidotdev/providers";

Expand All @@ -18,8 +17,6 @@ import {
AUTHZ_SERVICE_KEY,
BILLING_BASE_URL,
BILLING_SERVICE_API_KEY,
FLAGS_API_HOST,
FLAGS_CLIENT_KEY,
S3_ACCESS_KEY_ID,
S3_BUCKET,
S3_ENDPOINT,
Expand Down Expand Up @@ -61,17 +58,6 @@ export const events = createEventsProvider(
: {},
);

export const flags = createFlagProvider(
FLAGS_API_HOST
? {
provider: "unleash",
url: FLAGS_API_HOST,
apiKey: FLAGS_CLIENT_KEY!,
appName: "runa-api",
}
: {},
);

/**
* Object storage for task attachments.
*
Expand Down
2 changes: 0 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import {
projectAvatarRoutes,
projectBackgroundRoutes,
} from "lib/media";
import { maintenanceMiddleware } from "lib/middleware/maintenance";
import {
SEARCH_RECONCILE_INTERVAL_MS,
initializeSearchIndexes,
Expand Down Expand Up @@ -188,7 +187,6 @@ async function startServer(): Promise<void> {
duration: 60_000,
}),
)
.use(maintenanceMiddleware)
.use(
cors({
origin: CORS_ALLOWED_ORIGINS!.split(","),
Expand Down
Loading