A third-party ChatGPT Web UI page built with Express and Vue3, through the official OpenAI completion API. / 用 Express 和 Vue3 搭建的第三方 ChatGPT 前端页面, 基于 OpenAI 官方 completion API.
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))
As
tsx
is used for backend__dirname
is failed to solve atmail.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:
Dockerfile: