Skip to content

Commit 377b84e

Browse files
authored
v0.4.6: kb improvements, posthog fixes
2 parents b768ca8 + 223ecda commit 377b84e

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

apps/sim/app/api/files/presigned/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,8 @@ async function handleS3PresignedUrl(
265265
)
266266
}
267267

268-
// For chat images, knowledge base files, and profile pictures, use direct URLs since they need to be accessible by external services
269268
const finalPath =
270-
uploadType === 'chat' || uploadType === 'knowledge-base' || uploadType === 'profile-pictures'
269+
uploadType === 'chat' || uploadType === 'profile-pictures'
271270
? `https://${config.bucket}.s3.${config.region}.amazonaws.com/${uniqueKey}`
272271
: `/api/files/serve/s3/${encodeURIComponent(uniqueKey)}`
273272

apps/sim/lib/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export const env = createEnv({
8989
TELEMETRY_ENDPOINT: z.string().url().optional(), // Custom telemetry/analytics endpoint
9090
COST_MULTIPLIER: z.number().optional(), // Multiplier for cost calculations
9191
LOG_LEVEL: z.enum(['DEBUG', 'INFO', 'WARN', 'ERROR']).optional(), // Minimum log level to display (defaults to ERROR in production, DEBUG in development)
92-
POSTHOG_ENABLED: z.boolean().optional(), // Enable PostHog analytics and session recording
9392

9493
// External Services
9594
BROWSERBASE_API_KEY: z.string().min(1).optional(), // Browserbase API key for browser automation

apps/sim/next.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,6 @@ const nextConfig: NextConfig = {
239239
return redirects
240240
},
241241
async rewrites() {
242-
if (!isTruthy(env.POSTHOG_ENABLED)) {
243-
return []
244-
}
245-
246242
return [
247243
{
248244
source: '/ingest/static/:path*',

0 commit comments

Comments
 (0)