Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion application/client/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
[
"@babel/preset-react",
{
development: true,
development: false,
runtime: "automatic",
},
],
Expand Down
2 changes: 1 addition & 1 deletion application/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions application/client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const config = {
],
static: [PUBLIC_PATH, UPLOAD_PATH],
},
devtool: "inline-source-map",
devtool: false,
entry: {
main: [
"core-js",
Expand All @@ -36,7 +36,7 @@ const config = {
path.resolve(SRC_PATH, "./index.tsx"),
],
},
mode: "none",
mode: "production",
module: {
rules: [
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -128,7 +128,7 @@ const config = {
},
},
optimization: {
minimize: false,
minimize: true,
splitChunks: false,
concatenateModules: false,
usedExports: false,
Expand Down
4 changes: 1 addition & 3 deletions application/server/src/routes/api/crok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading