Skip to content

FIX: no mail is being sent to user #405

@urmi1510799

Description

@urmi1510799

As tsx is used for backend __dirname is failed to solve at mail.ts showing error: __dirname is not defined. As a result signup and reset password isn't possible and mail is failed to send to user. This can be fixed by this following code. I highly encourage to implement this fix as soon as possible.

mail.ts:

import { fileURLToPath } from 'node:url'
import { dirname } from 'node:path'

const __dirname = dirname(fileURLToPath(import.meta.url))

Dockerfile:

COPY --from=backend /app/src/utils/templates /app/build/utils/templates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions