From 283db3eafe3a17f788908902b4492980b3bc7c39 Mon Sep 17 00:00:00 2001 From: cp-20 Date: Sat, 14 Dec 2024 23:13:31 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF?= =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/traPtitech/NeoShowcase/pull/984#discussion_r1884377764 --- .../src/features/application/schema/websiteSchema.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/dashboard/src/features/application/schema/websiteSchema.ts b/dashboard/src/features/application/schema/websiteSchema.ts index 2558933b..9559baa0 100644 --- a/dashboard/src/features/application/schema/websiteSchema.ts +++ b/dashboard/src/features/application/schema/websiteSchema.ts @@ -36,16 +36,8 @@ export const createWebsiteSchema = v.pipe( https: stringBooleanSchema, // 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(), - ), + h2c: v.optional(v.boolean(), false), + httpPort: v.optional(v.pipe(v.number(), v.integer()), 80), authentication: authenticationSchema, }), // wildcard domainが選択されている場合サブドメインは空であってはならない