firebase / firebase/firebase-tools

Functions emulator path doesn't match real executor path

Open
#3,075 9 comments 2 reactions 1 assignee Claimed by @TheIronDev View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.