import path from 'path'; import { fileURLToPath } from 'url'; const ... app.use(express.static(path.join(__dirname ,'dist'))); //works.
確定! 回上一頁