Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when i'm trying to deploy nextjs on cloud functions #2467

Closed
jackmatrix opened this issue Jul 5, 2017 · 1 comment
Closed

Error when i'm trying to deploy nextjs on cloud functions #2467

jackmatrix opened this issue Jul 5, 2017 · 1 comment

Comments

@jackmatrix
Copy link

I am trying to make nextjs works together with firebase cloud functions.

When i am testing locally, there is no problem my app works perfectly.

However when i am deploying there is an error related to this line

const app = next({ dev : false })

When i put this line, my functions cannot be deployed and i get this message

Deploy Error: Function load error: Error: cannot communicate with function.

I don't understand because i don't have this issue in local testing.

Then when i comment this line. It's okay i can deploy my functions. However there is no possibility to use next.js . So this is the problem.

I have this error even without using any nextjs stuff in my functions. Just the fact to declare the line

const app = next({ dev : false }) prevent my app to deploy

any suggestions ?

@timneutkens
Copy link
Member

Duplicate of #2017. TLDR: I wouldn't use it cause it causes overhead on each request.

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants