aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-01-23 20:41:52 -0800
committerbndw <ben@bdw.to>2026-01-23 20:41:52 -0800
commit8ca69600061ee64f41c1da4372e6dc2915c2f597 (patch)
treee290d37449ee8e272e1b9fdc9d062b584830860e
parent9986da56a6097a69d503908bc8baad0e9c969642 (diff)
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.
-rw-r--r--Makefile4
-rw-r--r--app/api/hello/route.ts3
-rw-r--r--next.config.js2
3 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5726467..7ba5b28 100644
--- a/Makefile
+++ b/Makefile
@@ -14,3 +14,7 @@ dev:
14.PHONY: run 14.PHONY: run
15run: 15run:
16 docker run --rm -p 3000:3000 $(TAG_LATEST) 16 docker run --rm -p 3000:3000 $(TAG_LATEST)
17
18.PHONY: static
19static:
20 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 @@
1export async function GET(request: Request) {
2 return new Response('Hello, Next.js!')
3}
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 @@
1/** @type {import('next').NextConfig} */ 1/** @type {import('next').NextConfig} */
2const nextConfig = { 2const nextConfig = {
3 output: 'export',
3 experimental: { 4 experimental: {
4 appDir: true, 5 appDir: true,
5 outputStandalone: true,
6 }, 6 },
7}; 7};
8 8