From d3e55217923194478a3eee7e636ed8c6075567ed Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Sun, 29 Mar 2026 05:14:54 +0000 Subject: [PATCH] feat: add initial configuration files for Caddy and Docker setup --- caddy/Caddyfile | 0 caddy/Dockerfile | 16 ++++++++++++++++ next.config.ts | 3 ++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 caddy/Caddyfile create mode 100644 caddy/Dockerfile diff --git a/caddy/Caddyfile b/caddy/Caddyfile new file mode 100644 index 0000000..e69de29 diff --git a/caddy/Dockerfile b/caddy/Dockerfile new file mode 100644 index 0000000..07dbf1e --- /dev/null +++ b/caddy/Dockerfile @@ -0,0 +1,16 @@ +FROM oven/bun:latest AS builder + +WORKDIR /app + +COPY package.json bun.lock ./ +RUN bun install --frozen-lockfile + +COPY . . +RUN bun run build + +FROM caddy:latest + +WORKDIR /app + +COPY --from=builder /app/out ./ +COPY caddy/Caddyfile /etc/caddy/Caddyfile \ No newline at end of file diff --git a/next.config.ts b/next.config.ts index e9ffa30..a18b38e 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,8 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ + output: "export", + trailingSlash: true, }; export default nextConfig;