firebase / firebase/firebase-tools

Add configurable Cloud Function ignores to allow for tooling like next-i18next, prisma, etc. in web frameworks

Open
#5,607 16 comments 7 reactions 1 assignee Assigned to @jamesdaniels View on GitHub
integration: web frameworks type: feature request
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### Environment info

**firebase-tools:** 11.24.1

**Platform:** macOS 13.1

### Test case

[Web-i18n.zip](https://github.com/firebase/firebase-tools/files/10989659/Web-i18n.zip)

### Steps to reproduce

Run `firebase deploy` and go to `/invite/random-id`.

### Expected behavior

One receives a page that encodes the current URL in a QR code.

### Actual behavior

One gets a 500 error. In the logs this looks like:

```
Error: next-i18next was unable to find a user config at /workspace/next-i18next.config.js
at _callee$ (/workspace/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:104:19)
at tryCatch (/workspace/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
at Generator. (/workspace/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
at Generator.next (/workspace/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
at asyncGeneratorStep (/workspace/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/workspace/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
at /workspace/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
at new Promise ()
at /workspace/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12
at serverSideTranslations (/workspace/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:168:17)
```

Some further info as how I tried to fix it unsuccessfully so far can be found [here](https://stackoverflow.com/questions/75747449/firebase-web-framework-hosting-fails-with-next-i18next-on-dynamic-pages).

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.