mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 09:50:33 -04:00
9f5620c7cd
* feat: stub `getDebuggingOperations` * fix: logflare variables in `generateLocalEnv.js` * chore: upgrade `supabase`, `@supabase/mcp-server-supabase` * feat: shared `retrieveAnalyticsData`, implement `getLogs` for MCP * feat: shared `getLints`, implement MCP security/performance advisors with filter * chore: update lockfile * fix: prefer `??` Co-authored-by: Greg Richardson <greg.nmr@gmail.com> * docs: comment origin of `LINT_SQL` Co-authored-by: Greg Richardson <greg.nmr@gmail.com> * chore: bump `supabase` devDependency for latest images Changes rely on fix from loglare v1.23.0 * fix: edge function logs query Based on https://github.com/supabase/supabase/pull/39388/files#diff-b4e9726d34a406fa1a6133a18bdb972c90be9df0c89598de0695592514e22941R199-R206 --------- Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
22 lines
724 B
TypeScript
22 lines
724 B
TypeScript
const PUBLIC_URL = new URL(process.env.SUPABASE_PUBLIC_URL || 'http://localhost:8000')
|
|
|
|
// Use LOGFLARE_URL until analytics/v1/ routing is supported
|
|
export const PROJECT_ANALYTICS_URL = process.env.LOGFLARE_URL
|
|
? `${process.env.LOGFLARE_URL}/api/`
|
|
: undefined
|
|
|
|
export const PROJECT_REST_URL = `${PUBLIC_URL.origin}/rest/v1/`
|
|
export const PROJECT_ENDPOINT = PUBLIC_URL.host
|
|
export const PROJECT_ENDPOINT_PROTOCOL = PUBLIC_URL.protocol.replace(':', '')
|
|
|
|
export const DEFAULT_PROJECT = {
|
|
id: 1,
|
|
ref: 'default',
|
|
name: process.env.DEFAULT_PROJECT_NAME || 'Default Project',
|
|
organization_id: 1,
|
|
cloud_provider: 'localhost',
|
|
status: 'ACTIVE_HEALTHY',
|
|
region: 'local',
|
|
inserted_at: '2021-08-02T06:40:40.646Z',
|
|
}
|