mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Adds .hanzo/workflows/cicd.yml calling the canonical pipeline and drops the GitHub-hosted workflows it replaces. Lands here because this is where the repo is written — git.hanzo.ai is upstream and github.com is its push mirror, so the same change made on github.com never reaches the runner fleet.
30 lines
838 B
TypeScript
30 lines
838 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import app from '../app';
|
|
import { getEnvValue } from '../utils';
|
|
|
|
// Publishable ingest key for this explorer. It is write-only — it attributes a
|
|
// write and never mints a reading principal — so it belongs in the browser
|
|
// bundle. NEXT_PUBLIC_PUBLISHABLE_KEY is the fleet's one spelling for this
|
|
// value and overrides the default when a deploy supplies it.
|
|
const ingestKey = getEnvValue('NEXT_PUBLIC_PUBLISHABLE_KEY') || 'pk-gUZp6ZVfhJzSwK-rb4oLbVkpCnMBx5uSCpxf_5yEhQk';
|
|
|
|
const title = 'Hanzo Insights';
|
|
|
|
const config: Feature<{ ingestKey: string }> = (() => {
|
|
if (!app.isPrivateMode && ingestKey) {
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: true,
|
|
ingestKey,
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|