Skip to content

Commit

Permalink
Chore: Last build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vija02 committed Mar 1, 2025
1 parent 3885bed commit f193210
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions backend/worker/src/email.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { emailLegalText as legalText, projectName } from "@repo/config";
import { promises as fsp } from "fs";
import { template as lodashTemplate } from "lodash";
// @ts-ignore
import mjml2html = require("mjml");
import mjml2html from "mjml";

declare module global {
let TEST_EMAILS: any[];
Expand Down
3 changes: 1 addition & 2 deletions production.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@ COPY --from=builder-client /app/apps/homepage/.next/standalone/node_modules /app
COPY --from=deps /app/node_modules/.yarn-state.yml /app/node_modules/
# And also the @repo symlink
COPY --from=deps /app/node_modules/@repo /app/node_modules/@repo/
# And last but not least, copy specific dependencies that needs manual overriding since it's not detected through nft
# And last but not least, get next specifically due to its complicated require setup. We'll get problems otherwise
COPY --from=deps /app/node_modules/next /app/node_modules/next/
COPY --from=deps /app/node_modules/graphile-worker /app/node_modules/graphile-worker/

COPY --from=builder-core /app/packages/graphql/ /app/packages/graphql/
COPY --from=builder-core /app/backend/config/ /app/backend/config/
Expand Down
1 change: 1 addition & 0 deletions scripts/build_utils/extract_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const workerTasks = fs.readdirSync("./backend/worker/dist/tasks");
const files = [
"./backend/server/dist/index.js",
...workerTasks.map((x) => path.join("./backend/worker/dist/tasks", x)),
"./node_modules/graphile-worker/dist/cli.js"
];

(async () => {
Expand Down

0 comments on commit f193210

Please sign in to comment.