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 @@ -29,9 +29,6 @@ BILLING_WEBHOOK_SECRET=""
VORTEX_API_URL="https://localhost:5000"
VORTEX_API_KEY=""

# feature flags
FLAGS_CLIENT_KEY=

# object storage (feedback attachments)
# Optional: when S3_BUCKET is unset, uploads use a noop provider and bytes are
# not persisted. Works with any S3-compatible store (AWS S3, R2, MinIO, Railway).
Expand Down
3 changes: 0 additions & 3 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
AUTH_BASE_URL="https://identity.omni.dev"

CHECKOUT_SUCCESS_URL="https://backfeed.omni.dev/confirmation"

# 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 @@ -27,9 +27,6 @@ export const {
VORTEX_API_KEY,
// Auth webhook
AUTH_WEBHOOK_SECRET,
// Feature flags
FLAGS_API_HOST,
FLAGS_CLIENT_KEY,
// Meilisearch (unified search)
MEILISEARCH_URL,
MEILISEARCH_MASTER_KEY,
Expand Down Expand Up @@ -102,8 +99,6 @@ if (!AUTHZ_API_URL)
console.warn("AUTHZ_API_URL not set, authorization disabled");
if (!VORTEX_API_URL)
console.warn("VORTEX_API_URL not set, event streaming 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(
Expand Down
24 changes: 0 additions & 24 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,
createNotificationProvider,
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,
HERALD_API_KEY,
HERALD_API_URL,
HERALD_DEFAULT_FROM,
Expand Down Expand Up @@ -80,17 +77,6 @@ export const notifications = createNotificationProvider(
: {},
);

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

/**
* Object storage for feedback attachments.
*
Expand Down
2 changes: 0 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
import idpWebhook from "lib/idp/webhooks";
import attachmentServeRoutes from "lib/media/serve.route";
import attachmentUploadRoutes from "lib/media/upload.route";
import { maintenanceMiddleware } from "lib/middleware/maintenance";
import {
SEARCH_RECONCILE_INTERVAL_MS,
initializeSearchIndexes,
Expand Down Expand Up @@ -111,7 +110,6 @@ async function startServer(): Promise<void> {
set.headers["Referrer-Policy"] = "strict-origin-when-cross-origin";
})
.get("/health", () => ({ status: "ok", commit }))
.use(maintenanceMiddleware)
.use(
rateLimit({
max: 100,
Expand Down
Loading