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: 0 additions & 2 deletions apps/sim/app/api/auth/oauth/connections/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { createLogger } from '@/lib/logs/console/logger'
import { db } from '@/db'
import { account, user } from '@/db/schema'

export const dynamic = 'force-dynamic'

const logger = createLogger('OAuthConnectionsAPI')

interface GoogleIdToken {
Expand Down
2 changes: 0 additions & 2 deletions apps/sim/app/api/billing/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { member } from '@/db/schema'

const logger = createLogger('UnifiedBillingAPI')

export const dynamic = 'force-dynamic'

/**
* Unified Billing Endpoint
*/
Expand Down
2 changes: 0 additions & 2 deletions apps/sim/app/api/files/serve/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import {
getContentType,
} from '@/app/api/files/utils'

export const dynamic = 'force-dynamic'

const logger = createLogger('FilesServeAPI')

async function streamToBuffer(readableStream: NodeJS.ReadableStream): Promise<Buffer> {
Expand Down
3 changes: 0 additions & 3 deletions apps/sim/app/api/folders/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { and, eq } from 'drizzle-orm'
import { type NextRequest, NextResponse } from 'next/server'
import { getSession } from '@/lib/auth'
import { createLogger } from '@/lib/logs/console/logger'

export const dynamic = 'force-dynamic'

import { getUserEntityPermissions } from '@/lib/permissions/utils'
import { db } from '@/db'
import { workflow, workflowFolder } from '@/db/schema'
Expand Down
2 changes: 0 additions & 2 deletions apps/sim/app/api/folders/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { workflowFolder } from '@/db/schema'

const logger = createLogger('FoldersAPI')

export const dynamic = 'force-dynamic'

// GET - Fetch folders for a workspace
export async function GET(request: NextRequest) {
try {
Expand Down
1 change: 0 additions & 1 deletion apps/sim/app/api/logs/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function extractBlockExecutionsFromTraceSpans(traceSpans: any[]): any[] {
return blockExecutions
}

export const dynamic = 'force-dynamic'
export const revalidate = 0

const QueryParamsSchema = z.object({
Expand Down
3 changes: 0 additions & 3 deletions apps/sim/app/api/organizations/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import {
updateOrganizationSeats,
} from '@/lib/billing/validation/seat-management'
import { createLogger } from '@/lib/logs/console/logger'

export const dynamic = 'force-dynamic'

import { db } from '@/db'
import { member, organization } from '@/db/schema'

Expand Down
2 changes: 0 additions & 2 deletions apps/sim/app/api/organizations/[id]/workspaces/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { member, permissions, user, workspace } from '@/db/schema'

const logger = createLogger('OrganizationWorkspacesAPI')

export const dynamic = 'force-dynamic'

/**
* GET /api/organizations/[id]/workspaces
* Get workspaces related to the organization with optional filtering
Expand Down
1 change: 0 additions & 1 deletion apps/sim/app/api/templates/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { templates } from '@/db/schema'

const logger = createLogger('TemplateByIdAPI')

export const dynamic = 'force-dynamic'
export const revalidate = 0

// GET /api/templates/[id] - Retrieve a single template by ID
Expand Down
1 change: 0 additions & 1 deletion apps/sim/app/api/templates/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { templateStars, templates, workflow } from '@/db/schema'

const logger = createLogger('TemplatesAPI')

export const dynamic = 'force-dynamic'
export const revalidate = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Conflicting config: revalidate = 0 already disables caching, making the force-dynamic removal ineffective for performance gains.


// Function to sanitize sensitive data from workflow state
Expand Down
3 changes: 0 additions & 3 deletions apps/sim/app/api/users/me/settings/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { NextResponse } from 'next/server'
import { z } from 'zod'
import { getSession } from '@/lib/auth'
import { createLogger } from '@/lib/logs/console/logger'

export const dynamic = 'force-dynamic'

import { db } from '@/db'
import { settings } from '@/db/schema'

Expand Down
3 changes: 0 additions & 3 deletions apps/sim/app/api/workspaces/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { and, desc, eq, isNull } from 'drizzle-orm'
import { NextResponse } from 'next/server'
import { getSession } from '@/lib/auth'
import { createLogger } from '@/lib/logs/console/logger'

export const dynamic = 'force-dynamic'

import { db } from '@/db'
import { permissions, workflow, workflowBlocks, workspace } from '@/db/schema'

Expand Down
22 changes: 11 additions & 11 deletions helm/sim/examples/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ app:

# Production URLs (REQUIRED - update with your actual domain names)
env:
NEXT_PUBLIC_APP_URL: "https://simstudio.acme.com"
BETTER_AUTH_URL: "https://simstudio.acme.com"
SOCKET_SERVER_URL: "https://simstudio-ws.acme.com"
NEXT_PUBLIC_SOCKET_URL: "https://simstudio-ws.acme.com"
NEXT_PUBLIC_APP_URL: "https://sim.acme.ai"
BETTER_AUTH_URL: "https://sim.acme.ai"
SOCKET_SERVER_URL: "https://sim-ws.acme.ai"
NEXT_PUBLIC_SOCKET_URL: "https://sim-ws.acme.ai"

# Security settings (REQUIRED - replace with your own secure secrets)
BETTER_AUTH_SECRET: "your-production-auth-secret-here"
Expand All @@ -49,11 +49,11 @@ realtime:
cpu: "500m"

env:
NEXT_PUBLIC_APP_URL: "https://simstudio.acme.com"
BETTER_AUTH_URL: "https://simstudio.acme.com"
NEXT_PUBLIC_SOCKET_URL: "https://simstudio-ws.acme.com"
NEXT_PUBLIC_APP_URL: "https://sim.acme.ai"
BETTER_AUTH_URL: "https://sim.acme.ai"
NEXT_PUBLIC_SOCKET_URL: "https://sim-ws.acme.ai"
BETTER_AUTH_SECRET: "your-production-auth-secret-here"
ALLOWED_ORIGINS: "https://simstudio.acme.com"
ALLOWED_ORIGINS: "https://sim.acme.ai"

# Database migrations
migrations:
Expand Down Expand Up @@ -118,22 +118,22 @@ ingress:

# Main application
app:
host: simstudio.acme.com
host: sim.acme.ai
paths:
- path: /
pathType: Prefix

# Realtime service
realtime:
host: simstudio-ws.acme.com
host: sim-ws.acme.ai
paths:
- path: /
pathType: Prefix

# TLS configuration
tls:
enabled: true
secretName: simstudio-tls-secret
secretName: sim-tls-secret

# Horizontal Pod Autoscaler (automatically scales pods based on CPU/memory usage)
autoscaling:
Expand Down