Skip to content

Commit ec33028

Browse files
committed
fix(logs): show block inputs (#1979)
* Fix executor lgos block inputs * Fix Comment
1 parent 4449be1 commit ec33028

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

apps/sim/executor/execution/block-executor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export class BlockExecutor {
7272

7373
try {
7474
resolvedInputs = this.resolver.resolveInputs(ctx, node.id, block.config.params, block)
75+
if (blockLog) {
76+
blockLog.input = resolvedInputs
77+
}
7578
} catch (error) {
7679
cleanupSelfReference?.()
7780
return this.handleBlockError(

apps/sim/lib/environment.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Environment utility functions for consistent environment detection across the application
33
*/
4-
import { env, isTruthy } from './env'
4+
import { env, getEnv, isTruthy } from './env'
55

66
/**
77
* Is the application running in production mode
@@ -21,7 +21,9 @@ export const isTest = env.NODE_ENV === 'test'
2121
/**
2222
* Is this the hosted version of the application
2323
*/
24-
export const isHosted = true
24+
export const isHosted =
25+
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26+
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
2527

2628
/**
2729
* Is billing enforcement enabled

0 commit comments

Comments
 (0)