firebase / firebase/firebase-tools
Functions emulator path doesn't match real executor path
Open
api: functions
docs
emulators: functions
Needs: Attention
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 84
Description
### [REQUIRED] Environment info
**firebase-tools:** 9.2.2
**Platform:** WSL v2 Debian
### [REQUIRED] Test case
```
import * as functions from "firebase-functions";
import express from "express";
const app = express();
app.post("/api/test", async (req, res) => {
console.log("hooray");
});
export const api = functions.https.onRequest(app);
```
### [REQUIRED] Steps to reproduce
Run the above test case, visit `.../api/test`.
### [REQUIRED] Expected behavior
`.../api/test` should work.
### [REQUIRED] Actual behavior
If I visit this in prod functions it works, however on the emulator it requires that I visit `.../api/api/test`.
Contributor guide
Assessment
This issue has not been assessed yet.