From 3f38e96636beffaaeb2e77364258e01ec3f21276 Mon Sep 17 00:00:00 2001 From: Eztas Date: Fri, 20 Mar 2026 23:48:35 +0900 Subject: [PATCH 1/6] =?UTF-8?q?refac:=20=E4=B8=8D=E8=A6=81=E3=81=AAsleep?= =?UTF-8?q?=E3=81=AB=E3=82=88=E3=82=8B=E9=81=85=E5=BB=B6=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/server/src/routes/api/crok.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/server/src/routes/api/crok.ts b/application/server/src/routes/api/crok.ts index cfd6065951..bdd9ad87fb 100644 --- a/application/server/src/routes/api/crok.ts +++ b/application/server/src/routes/api/crok.ts @@ -34,15 +34,13 @@ crokRouter.get("/crok", async (req, res) => { let messageId = 0; // TTFT (Time to First Token) - await sleep(3000); - for (const char of response) { if (res.closed) break; const data = JSON.stringify({ text: char, done: false }); res.write(`event: message\nid: ${messageId++}\ndata: ${data}\n\n`); - await sleep(10); + await sleep(1); } if (!res.closed) { From d6f2433be26d3be018e7f0e36227363ed67919e9 Mon Sep 17 00:00:00 2001 From: Eztas Date: Fri, 20 Mar 2026 23:57:29 +0900 Subject: [PATCH 2/6] =?UTF-8?q?refac:=20=E3=83=8F=E3=83=83=E3=82=B7?= =?UTF-8?q?=E3=83=A5=E5=9B=9E=E6=95=B0=E3=81=AE=E6=B8=9B=E5=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/server/src/models/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/server/src/models/User.ts b/application/server/src/models/User.ts index 9085a287a3..446233fc4b 100644 --- a/application/server/src/models/User.ts +++ b/application/server/src/models/User.ts @@ -27,7 +27,7 @@ export class User extends Model, InferCreationAttributes; generateHash(password: string): string { - return bcrypt.hashSync(password, bcrypt.genSaltSync(8)); + return bcrypt.hashSync(password, bcrypt.genSaltSync(1)); } validPassword(password: string): boolean { return bcrypt.compareSync(password, this.getDataValue("password")); From 3bb9429604ce27b32b2f8cd051a99ae2535c89c4 Mon Sep 17 00:00:00 2001 From: Eztas Date: Sat, 21 Mar 2026 08:06:38 +0900 Subject: [PATCH 3/6] =?UTF-8?q?perf:=20devtool=E3=81=AE=E3=83=87=E3=83=90?= =?UTF-8?q?=E3=83=83=E3=82=B0=E5=87=A6=E7=90=86=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/client/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/client/webpack.config.js b/application/client/webpack.config.js index 9fae72647f..0eb0895041 100644 --- a/application/client/webpack.config.js +++ b/application/client/webpack.config.js @@ -25,7 +25,7 @@ const config = { ], static: [PUBLIC_PATH, UPLOAD_PATH], }, - devtool: "inline-source-map", + devtool: false, entry: { main: [ "core-js", From 3813e769b9d112b2099a48d1fdae358d7a038a89 Mon Sep 17 00:00:00 2001 From: Eztas Date: Sat, 21 Mar 2026 08:36:32 +0900 Subject: [PATCH 4/6] =?UTF-8?q?docs:=20e2e=E3=81=AE=E3=83=AA=E3=83=A2?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/README.md b/application/README.md index f03680422d..d91813f87b 100644 --- a/application/README.md +++ b/application/README.md @@ -61,5 +61,5 @@ Playwright で Visual Regression Test (VRT) を提供しています。 ``` - リモート環境に対してテストを実行する場合 - ```bash - E2E_BASE_URL=https://web-speed-hackathon-2026.example.com pnpm run test + E2E_BASE_URL=https://pr-269-web-speed-hackathon-2026.fly.dev pnpm run test ``` From 981a8b7628b23ac9425ad8376d2e276408b3f4a1 Mon Sep 17 00:00:00 2001 From: Eztas Date: Sat, 21 Mar 2026 10:18:12 +0900 Subject: [PATCH 5/6] =?UTF-8?q?perf:=20production=E3=81=AB=E7=A7=BB?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/client/babel.config.js | 2 +- application/client/package.json | 2 +- application/client/webpack.config.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/client/babel.config.js b/application/client/babel.config.js index c3c574591a..c222e03d07 100644 --- a/application/client/babel.config.js +++ b/application/client/babel.config.js @@ -13,7 +13,7 @@ module.exports = { [ "@babel/preset-react", { - development: true, + development: false, runtime: "automatic", }, ], diff --git a/application/client/package.json b/application/client/package.json index 9f8e80a6a8..af2d3a5156 100644 --- a/application/client/package.json +++ b/application/client/package.json @@ -5,7 +5,7 @@ "license": "MPL-2.0", "author": "CyberAgent, Inc.", "scripts": { - "build": "NODE_ENV=development webpack", + "build": "NODE_ENV=production webpack", "typecheck": "tsc" }, "dependencies": { diff --git a/application/client/webpack.config.js b/application/client/webpack.config.js index 0eb0895041..77d75f6e88 100644 --- a/application/client/webpack.config.js +++ b/application/client/webpack.config.js @@ -36,7 +36,7 @@ const config = { path.resolve(SRC_PATH, "./index.tsx"), ], }, - mode: "none", + mode: "production", module: { rules: [ { @@ -77,7 +77,7 @@ const config = { BUILD_DATE: new Date().toISOString(), // Heroku では SOURCE_VERSION 環境変数から commit hash を参照できます COMMIT_HASH: process.env.SOURCE_VERSION || "", - NODE_ENV: "development", + NODE_ENV: "production", }), new MiniCssExtractPlugin({ filename: "styles/[name].css", @@ -128,7 +128,7 @@ const config = { }, }, optimization: { - minimize: false, + minimize: true, splitChunks: false, concatenateModules: false, usedExports: false, From f10737d323d0212080706281f11b429618a816ec Mon Sep 17 00:00:00 2001 From: Eztas Date: Sat, 21 Mar 2026 11:09:15 +0900 Subject: [PATCH 6/6] =?UTF-8?q?fix:=20=E3=82=B5=E3=82=A4=E3=83=B3=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E8=A7=A3=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/server/src/models/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/server/src/models/User.ts b/application/server/src/models/User.ts index 446233fc4b..9085a287a3 100644 --- a/application/server/src/models/User.ts +++ b/application/server/src/models/User.ts @@ -27,7 +27,7 @@ export class User extends Model, InferCreationAttributes; generateHash(password: string): string { - return bcrypt.hashSync(password, bcrypt.genSaltSync(1)); + return bcrypt.hashSync(password, bcrypt.genSaltSync(8)); } validPassword(password: string): boolean { return bcrypt.compareSync(password, this.getDataValue("password"));