fix: frontend and backend now get variables at build time not runtime

This commit is contained in:
theoleuthardt 2025-02-28 11:29:44 +01:00
parent 607d496f2a
commit 776ed29bca
6 changed files with 17 additions and 11 deletions

View file

@ -61,7 +61,11 @@ USER fastify
EXPOSE 4000
ARG CORS_ALLOWED_ORIGIN
ENV CORS_ALLOWED_ORIGIN=$CORS_ALLOWED_ORIGIN
ENV PORT=4000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "dist/server.js"]

View file

@ -10,10 +10,6 @@ import { generateQRCode } from "./src/routes/generateqrcode.route";
import { wordCounter } from "./src/routes/wordcounter.route";
import { videoToAudio } from "./src/routes/videotoaudio.route";
import { removeBG } from "./src/routes/removebg.route";
import dotenv from "dotenv";
import path from "node:path";
dotenv.config({ path: path.resolve(__dirname, "../.env") });
const app = Fastify({ logger: true });