From 8ca69600061ee64f41c1da4372e6dc2915c2f597 Mon Sep 17 00:00:00 2001 From: bndw Date: Fri, 23 Jan 2026 20:41:52 -0800 Subject: feat: enable static site export Remove unused hello API route template and configure Next.js for static export. Add make target for building static site. --- Makefile | 4 ++++ app/api/hello/route.ts | 3 --- next.config.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 app/api/hello/route.ts diff --git a/Makefile b/Makefile index 5726467..7ba5b28 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,7 @@ dev: .PHONY: run run: docker run --rm -p 3000:3000 $(TAG_LATEST) + +.PHONY: static +static: + yarn build diff --git a/app/api/hello/route.ts b/app/api/hello/route.ts deleted file mode 100644 index d1cc6ee..0000000 --- a/app/api/hello/route.ts +++ /dev/null @@ -1,3 +0,0 @@ -export async function GET(request: Request) { - return new Response('Hello, Next.js!') -} diff --git a/next.config.js b/next.config.js index 62e6502..c335cc8 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + output: 'export', experimental: { appDir: true, - outputStandalone: true, }, }; -- cgit v1.2.3