Skip to content
Merged
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
2 changes: 1 addition & 1 deletion apps/sim/app/api/telemetry/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function forwardToCollector(data: any): Promise<boolean> {
return false
}

const endpoint = env.TELEMETRY_ENDPOINT || 'https://telemetry.sim.ai/v1/traces'
const endpoint = env.TELEMETRY_ENDPOINT || 'https://telemetry.simstudio.ai/v1/traces'
const timeout = DEFAULT_TIMEOUT

try {
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/instrumentation-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Sentry = isProd ? require('@sentry/nextjs') : { captureRequestError: () =>
const logger = createLogger('OtelInstrumentation')

const DEFAULT_TELEMETRY_CONFIG = {
endpoint: env.TELEMETRY_ENDPOINT || 'https://telemetry.sim.ai/v1/traces',
endpoint: env.TELEMETRY_ENDPOINT || 'https://telemetry.simstudio.ai/v1/traces',
serviceName: 'sim-studio',
serviceVersion: '0.1.0',
serverSide: { enabled: true },
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/lib/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type TelemetryStatus = {
const TELEMETRY_STATUS_KEY = 'simstudio-telemetry-status'

let telemetryConfig = {
endpoint: env.TELEMETRY_ENDPOINT || 'https://telemetry.sim.ai/v1/traces',
endpoint: env.TELEMETRY_ENDPOINT || 'https://telemetry.simstudio.ai/v1/traces',
serviceName: 'sim-studio',
serviceVersion: '0.1.0',
}
Expand Down
7 changes: 6 additions & 1 deletion apps/sim/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'path'
import { withSentryConfig } from '@sentry/nextjs'
import type { NextConfig } from 'next'
import { env, isTruthy } from './lib/env'
import { isDev, isProd } from './lib/environment'
import { isDev, isHosted, isProd } from './lib/environment'
import { getMainCSPPolicy, getWorkflowExecutionCSPPolicy } from './lib/security/csp'

const nextConfig: NextConfig = {
Expand Down Expand Up @@ -154,6 +154,11 @@ const nextConfig: NextConfig = {
]
},
async redirects() {
// Only enable domain redirects for the hosted version
if (!isHosted) {
return []
}

return [
{
source: '/((?!api|_next|_vercel|favicon|static|.*\\..*).*)',
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/telemetry.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
* Endpoint URL where telemetry data is sent
* Change this if you want to send telemetry to your own collector
*/
endpoint: env.TELEMETRY_ENDPOINT || 'https://telemetry.sim.ai/v1/traces',
endpoint: env.TELEMETRY_ENDPOINT || 'https://telemetry.simstudio.ai/v1/traces',

/**
* Service name used to identify this instance
Expand Down