chore: Small changes to single origin deployment 52e4ff43
Fixes small details as described in
https://github.com/stevedylandev/bhvr/issues/14
Steve · 2025-05-24 19:35 1 file(s) · +8 −4
docs/pages/deployment/single-origin.mdx +8 −4
79 79
// Serve static files for everything else
80 80
app.use("*", serveStatic({ root: "./static" }));
81 81
82 +
app.get("*", async (c, next) => {
83 +
  return serveStatic({ root: "./static", path: "index.html" })(c, next);
84 +
});
85 +
82 86
const port = parseInt(process.env.PORT || "3000");
83 87
84 88
export default {
233 237
WORKDIR /app
234 238
235 239
# Copy package files
236 -
COPY package.json bun.lockb ./
240 +
COPY package.json bun.lock ./
237 241
COPY client/package.json ./client/
238 242
COPY server/package.json ./server/
239 243
COPY shared/package.json ./shared/
240 244
241 -
# Install dependencies
242 -
RUN bun install
243 -
244 245
# Copy source code
245 246
COPY . .
247 +
248 +
# Install dependencies
249 +
RUN bun install
246 250
247 251
# Build for single origin
248 252
RUN bun run build:single