refactor(build): 🐛 Build standalone Bun Nitro server again instead of purely static files

This commit is contained in:
Jesse Wierzbinski 2024-04-22 09:55:03 -10:00
parent 1852eed3aa
commit 959f87825b
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View file

@ -17,8 +17,6 @@ FROM base as final
COPY --from=builder /app/.output/ /app 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.authors "Gaspard Wierzbinski (https://cpluspatch.com)"
LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand-fe" LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand-fe"
LABEL org.opencontainers.image.vendor "Lysand Org" 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" LABEL org.opencontainers.image.description "Frontend for the Lysand Project"
WORKDIR /app WORKDIR /app
CMD ["bunx", "serve", "public", "--no-compression"] CMD ["bun", "run", "server/index.mjs"]

View file

@ -22,7 +22,7 @@ export default defineNuxtConfig({
}, },
}, },
nitro: { nitro: {
preset: "static", preset: "bun",
minify: true, minify: true,
prerender: { prerender: {
failOnError: true, failOnError: true,