Skip to content

Commit

Permalink
Merge pull request #984 from traPtitech/fix/update-website-url
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 authored Dec 13, 2024
2 parents 00e17d7 + f5d1c4a commit f57e370
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions dashboard/src/features/application/schema/websiteSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ export const createWebsiteSchema = v.pipe(
pathPrefix: v.string(),
stripPrefix: v.boolean(),
https: stringBooleanSchema,
h2c: v.boolean(),
httpPort: v.pipe(v.number(), v.integer()),
// Static App ではフォームに表示されないので undefined になってしまう
// そのままだと invalid になって設定を変更できないのでデフォルト値を設定する
h2c: v.pipe(
v.optional(v.boolean()),
v.transform((input) => input ?? false),
),
// httpPort: v.pipe(v.number(), v.integer()),
httpPort: v.pipe(
v.optional(v.number()),
v.transform((input) => input ?? 80),
v.integer(),
),
authentication: authenticationSchema,
}),
// wildcard domainが選択されている場合サブドメインは空であってはならない
Expand Down

0 comments on commit f57e370

Please sign in to comment.