File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ async function forwardToCollector(data: any): Promise<boolean> {
8686 return false
8787 }
8888
89- const endpoint = env . TELEMETRY_ENDPOINT || 'https://telemetry.sim .ai/v1/traces'
89+ const endpoint = env . TELEMETRY_ENDPOINT || 'https://telemetry.simstudio .ai/v1/traces'
9090 const timeout = DEFAULT_TIMEOUT
9191
9292 try {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const Sentry = isProd ? require('@sentry/nextjs') : { captureRequestError: () =>
1313const logger = createLogger ( 'OtelInstrumentation' )
1414
1515const DEFAULT_TELEMETRY_CONFIG = {
16- endpoint : env . TELEMETRY_ENDPOINT || 'https://telemetry.sim .ai/v1/traces' ,
16+ endpoint : env . TELEMETRY_ENDPOINT || 'https://telemetry.simstudio .ai/v1/traces' ,
1717 serviceName : 'sim-studio' ,
1818 serviceVersion : '0.1.0' ,
1919 serverSide : { enabled : true } ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export type TelemetryStatus = {
3030const TELEMETRY_STATUS_KEY = 'simstudio-telemetry-status'
3131
3232let telemetryConfig = {
33- endpoint : env . TELEMETRY_ENDPOINT || 'https://telemetry.sim .ai/v1/traces' ,
33+ endpoint : env . TELEMETRY_ENDPOINT || 'https://telemetry.simstudio .ai/v1/traces' ,
3434 serviceName : 'sim-studio' ,
3535 serviceVersion : '0.1.0' ,
3636}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import path from 'path'
22import { withSentryConfig } from '@sentry/nextjs'
33import type { NextConfig } from 'next'
44import { env , isTruthy } from './lib/env'
5- import { isDev , isProd } from './lib/environment'
5+ import { isDev , isHosted , isProd } from './lib/environment'
66import { getMainCSPPolicy , getWorkflowExecutionCSPPolicy } from './lib/security/csp'
77
88const nextConfig : NextConfig = {
@@ -154,6 +154,11 @@ const nextConfig: NextConfig = {
154154 ]
155155 } ,
156156 async redirects ( ) {
157+ // Only enable domain redirects for the hosted version
158+ if ( ! isHosted ) {
159+ return [ ]
160+ }
161+
157162 return [
158163 {
159164 source : '/((?!api|_next|_vercel|favicon|static|.*\\..*).*)' ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const config = {
2929 * Endpoint URL where telemetry data is sent
3030 * Change this if you want to send telemetry to your own collector
3131 */
32- endpoint : env . TELEMETRY_ENDPOINT || 'https://telemetry.sim .ai/v1/traces' ,
32+ endpoint : env . TELEMETRY_ENDPOINT || 'https://telemetry.simstudio .ai/v1/traces' ,
3333
3434 /**
3535 * Service name used to identify this instance
You can’t perform that action at this time.
0 commit comments