From 7992faa7858291ee26aa4da736dcc2941d35039d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 02:03:45 +0000 Subject: [PATCH 1/7] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} From 7b9d1b172e164bcd4a60cd94972f6d80b942d8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tuna2134=40=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA?= =?UTF-8?q?=E8=A1=9B=E9=9A=8A?= Date: Mon, 28 Apr 2025 13:23:23 +0900 Subject: [PATCH 2/7] Update next.config.ts --- next.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.ts b/next.config.ts index e9ffa30..a4162da 100644 --- a/next.config.ts +++ b/next.config.ts @@ -4,4 +4,8 @@ const nextConfig: NextConfig = { /* config options here */ }; +if (process.env.OUTPUT === "standalone") { + nextConfig.output = "standalone"; +} + export default nextConfig; From 5b79428f5366fea6bfc1e63de0972b4ea94ab34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tuna2134=40=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA?= =?UTF-8?q?=E8=A1=9B=E9=9A=8A?= Date: Mon, 28 Apr 2025 13:23:49 +0900 Subject: [PATCH 3/7] Create Dockerfile --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e653135 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM node:22-slim as builder + +WORKDIR /src + +ENV OUTPUT standalone +RUN corepack enable + +COPY pnpm-lock.yaml package.json . +RUN pnpm install --frozen-lockfile + +COPY . . +RUN pnpm build + +FROM gcr.io/distroless/nodejs22-debian12 + +ENV NODE_ENV production +WORKDIR /usr/src + +COPY --chown=nonroot:nonroot ./public ./public +COPY --from=builder --chown=nonroot:nonroot /src/.next/standalone ./ +COPY --from=builder --chown=nonroot:nonroot /src/.next/static ./.next/static + +USER nonroot +EXPOSE 3000 +CMD ["server.js"] From 23cf911af85fd5de57f0944e4b6c3a6b59a3548f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 04:29:06 +0000 Subject: [PATCH 4/7] Update dependency @types/node to v22 --- package.json | 2 +- pnpm-lock.yaml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 83853cb..167edba 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "devDependencies": { "typescript": "^5", - "@types/node": "^20", + "@types/node": "^22.0.0", "@types/react": "^19", "@types/react-dom": "^19", "@tailwindcss/postcss": "^4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85e8013..ffe099c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,8 +22,8 @@ importers: specifier: ^4 version: 4.1.4 '@types/node': - specifier: ^20 - version: 20.17.31 + specifier: ^22.0.0 + version: 22.15.2 '@types/react': specifier: ^19 version: 19.1.2 @@ -301,8 +301,8 @@ packages: '@tailwindcss/postcss@4.1.4': resolution: {integrity: sha512-bjV6sqycCEa+AQSt2Kr7wpGF1bOZJ5wsqnLEkqSbM/JEHxx/yhMH8wHmdkPyApF9xhHeMSwnnkDUUMMM/hYnXw==} - '@types/node@20.17.31': - resolution: {integrity: sha512-quODOCNXQAbNf1Q7V+fI8WyErOCh0D5Yd31vHnKu4GkSztGQ7rlltAaqXhHhLl33tlVyUXs2386MkANSwgDn6A==} + '@types/node@22.15.2': + resolution: {integrity: sha512-uKXqKN9beGoMdBfcaTY1ecwz6ctxuJAcUlwE55938g0ZJ8lRxwAZqRz2AJ4pzpt5dHdTPMB863UZ0ESiFUcP7A==} '@types/react-dom@19.1.2': resolution: {integrity: sha512-XGJkWF41Qq305SKWEILa1O8vzhb3aOo3ogBlSmiqNko/WmRb6QIaweuZCXjKygVDXpzXb5wyxKTSOsmkuqj+Qw==} @@ -518,8 +518,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@6.19.8: - resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} snapshots: @@ -706,9 +706,9 @@ snapshots: postcss: 8.5.3 tailwindcss: 4.1.4 - '@types/node@20.17.31': + '@types/node@22.15.2': dependencies: - undici-types: 6.19.8 + undici-types: 6.21.0 '@types/react-dom@19.1.2(@types/react@19.1.2)': dependencies: @@ -910,4 +910,4 @@ snapshots: typescript@5.8.3: {} - undici-types@6.19.8: {} + undici-types@6.21.0: {} From 9c20ce354c82109cdc6cf0df80022677138e6bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tuna2134=40=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA?= =?UTF-8?q?=E8=A1=9B=E9=9A=8A?= Date: Mon, 28 Apr 2025 13:30:06 +0900 Subject: [PATCH 5/7] Update Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e653135..9950738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM node:22-slim as builder +FROM node:22-slim AS builder WORKDIR /src -ENV OUTPUT standalone +ENV OUTPUT=standalone RUN corepack enable COPY pnpm-lock.yaml package.json . @@ -13,7 +13,7 @@ RUN pnpm build FROM gcr.io/distroless/nodejs22-debian12 -ENV NODE_ENV production +ENV NODE_ENV=production WORKDIR /usr/src COPY --chown=nonroot:nonroot ./public ./public From badae02f436b3b9581e28c65653034dc993cfff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tuna2134=40=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA?= =?UTF-8?q?=E8=A1=9B=E9=9A=8A?= Date: Mon, 28 Apr 2025 15:12:41 +0900 Subject: [PATCH 6/7] Update page.tsx --- app/page.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/page.tsx b/app/page.tsx index 9ebe5eb..eef8acf 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -12,6 +12,11 @@ export default function Home() { datetime: "2025/09", description: "Discord botに組み込めたら面白いと思って開発を開始して作った。" }, + { + title: "New! ウェブサイト6代目開発開始", + datetime: "2025/04", + description: "前のサイトを変えたくなった。そして再び一から作ることにした。" + }, ]} /> From 69f17bf5056f33ef617c60cd4f62db6704dd6787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tuna2134=40=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA?= =?UTF-8?q?=E8=A1=9B=E9=9A=8A?= Date: Mon, 28 Apr 2025 17:24:11 +0900 Subject: [PATCH 7/7] =?UTF-8?q?page.tsx=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index eef8acf..bb59e8c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,13 +7,18 @@ export default function Home() {