I don't understand why my Google Cloud Run
instance doesn't know what __dirname
is
I have an expressjs server that has this in it:
import path from 'path';
const App = express()
.get('/*', (_req, res) => {
res.sendFile(path.join(__dirname, '.', 'index.html'));
})
I get a compile error __dirname is not defined