-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Description
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
BobDu
Metadata
Metadata
Assignees
Labels
No labels