From 959f87825b0f101434187fbaaf02744b1cfb45df Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Mon, 22 Apr 2024 09:55:03 -1000 Subject: [PATCH] refactor(build): :bug: Build standalone Bun Nitro server again instead of purely static files --- Dockerfile | 4 +--- nuxt.config.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6fd4146..cc7f862 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,6 @@ FROM base as final COPY --from=builder /app/.output/ /app -RUN bun add --global serve - LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.com)" LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand-fe" LABEL org.opencontainers.image.vendor "Lysand Org" @@ -27,4 +25,4 @@ LABEL org.opencontainers.image.title "Lysand-FE" LABEL org.opencontainers.image.description "Frontend for the Lysand Project" WORKDIR /app -CMD ["bunx", "serve", "public", "--no-compression"] \ No newline at end of file +CMD ["bun", "run", "server/index.mjs"] \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index feb517a..334c495 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -22,7 +22,7 @@ export default defineNuxtConfig({ }, }, nitro: { - preset: "static", + preset: "bun", minify: true, prerender: { failOnError: true,