Skip to content

Commit

Permalink
$typecheck をアプリケーションの自動再起動スキーマにも適用させた
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugma committed Dec 5, 2024
1 parent 500af72 commit 4386b93
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ export const applicationConfigSchema = v.pipe(
runtimeConfig: {
$typeName: 'neoshowcase.protobuf.RuntimeConfig',
...deployConfig.value.runtime,
autoShutdown: deployConfig.value.runtime.autoShutdown
? {
$typeName: 'neoshowcase.protobuf.AutoShutdownConfig',
enabled: deployConfig.value.runtime.autoShutdown.enabled,
startup: deployConfig.value.runtime.autoShutdown.startup,
}
: undefined,
},
},
},
Expand All @@ -149,6 +156,13 @@ export const applicationConfigSchema = v.pipe(
runtimeConfig: {
$typeName: 'neoshowcase.protobuf.RuntimeConfig',
...deployConfig.value.runtime,
autoShutdown: deployConfig.value.runtime.autoShutdown
? {
$typeName: 'neoshowcase.protobuf.AutoShutdownConfig',
enabled: deployConfig.value.runtime.autoShutdown.enabled,
startup: deployConfig.value.runtime.autoShutdown.startup,
}
: undefined,
},
},
},
Expand All @@ -165,6 +179,13 @@ export const applicationConfigSchema = v.pipe(
runtimeConfig: {
$typeName: 'neoshowcase.protobuf.RuntimeConfig',
...deployConfig.value.runtime,
autoShutdown: deployConfig.value.runtime.autoShutdown
? {
$typeName: 'neoshowcase.protobuf.AutoShutdownConfig',
enabled: deployConfig.value.runtime.autoShutdown.enabled,
startup: deployConfig.value.runtime.autoShutdown.startup,
}
: undefined,
},
},
},
Expand Down

0 comments on commit 4386b93

Please sign in to comment.