diff options
| author | bndw <ben@bdw.to> | 2026-01-23 20:41:52 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-01-23 20:41:52 -0800 |
| commit | 8ca69600061ee64f41c1da4372e6dc2915c2f597 (patch) | |
| tree | e290d37449ee8e272e1b9fdc9d062b584830860e | |
| parent | 9986da56a6097a69d503908bc8baad0e9c969642 (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-- | Makefile | 4 | ||||
| -rw-r--r-- | app/api/hello/route.ts | 3 | ||||
| -rw-r--r-- | next.config.js | 2 |
3 files changed, 5 insertions, 4 deletions
| @@ -14,3 +14,7 @@ dev: | |||
| 14 | .PHONY: run | 14 | .PHONY: run |
| 15 | run: | 15 | run: |
| 16 | docker run --rm -p 3000:3000 $(TAG_LATEST) | 16 | docker run --rm -p 3000:3000 $(TAG_LATEST) |
| 17 | |||
| 18 | .PHONY: static | ||
| 19 | static: | ||
| 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 @@ | |||
| 1 | export 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} */ |
| 2 | const nextConfig = { | 2 | const nextConfig = { |
| 3 | output: 'export', | ||
| 3 | experimental: { | 4 | experimental: { |
| 4 | appDir: true, | 5 | appDir: true, |
| 5 | outputStandalone: true, | ||
| 6 | }, | 6 | }, |
| 7 | }; | 7 | }; |
| 8 | 8 | ||
