feat: 增加resolve
This commit is contained in:
parent
c159ecd988
commit
a73a613bda
@ -3,9 +3,9 @@ import express from 'express'
|
|||||||
import cors from 'cors'
|
import cors from 'cors'
|
||||||
import grpc from '@grpc/grpc-js'
|
import grpc from '@grpc/grpc-js'
|
||||||
import protoLoader from '@grpc/proto-loader'
|
import protoLoader from '@grpc/proto-loader'
|
||||||
import path from 'path'
|
import { resolve } from 'path';
|
||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url';
|
||||||
import 'dotenv/config';
|
import 'dotenv/config';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url)
|
const __filename = fileURLToPath(import.meta.url)
|
||||||
const __dirname = path.dirname(__filename)
|
const __dirname = path.dirname(__filename)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user