feat: 增加resolve

This commit is contained in:
zhanghao 2026-06-29 17:27:32 +08:00
parent c159ecd988
commit a73a613bda

View File

@ -3,9 +3,9 @@ import express from 'express'
import cors from 'cors'
import grpc from '@grpc/grpc-js'
import protoLoader from '@grpc/proto-loader'
import path from 'path'
import { fileURLToPath } from 'url'
import 'dotenv/config';
import { resolve } from 'path';
import { fileURLToPath } from 'url';
import 'dotenv/config';
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)