Skip to content

Commit 36a31b0

Browse files
author
Kerwin
committed
fix: register failed(Close #405)
1 parent 1d644e7 commit 36a31b0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ COPY --from=frontend /app/dist /app/public
5555

5656
COPY --from=backend /app/build /app/build
5757

58-
COPY --from=backend /app/src/utils/templates /app/build/templates
58+
COPY --from=backend /app/src/utils/templates /app/build/utils/templates
5959

6060
EXPOSE 3002
6161

service/src/utils/mail.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import * as fs from 'fs'
22
import * as path from 'path'
3+
import { fileURLToPath } from 'node:url'
4+
import { dirname } from 'node:path'
35
import nodemailer from 'nodemailer'
46
import type { MailConfig } from '../storage/model'
57
import { getCacheConfig } from '../storage/config'
68

9+
const __dirname = dirname(fileURLToPath(import.meta.url))
10+
711
export async function sendVerifyMail(toMail: string, verifyUrl: string) {
812
const config = (await getCacheConfig())
913

0 commit comments

Comments
 (0)