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;