Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Not able to connect with firebase functions #15

Open
roshandeorukhkar opened this issue May 5, 2019 · 1 comment
Open

Not able to connect with firebase functions #15

roshandeorukhkar opened this issue May 5, 2019 · 1 comment

Comments

@roshandeorukhkar
Copy link

I have deployed code as per gatsby guide lines. I am calling /auth end point for firebase auth() function. It is working fine on local with proxy(developMiddleware) but not able to connect on production. Please help.

@roshandeorukhkar
Copy link
Author

roshandeorukhkar commented May 5, 2019

gatsby-config.js file code ---

developMiddleware: app => {
app.use(
"/auth",
proxy({
target: "http://localhost:5001",
pathRewrite: {
"/auth": /${FIREBASE_PROJECT_ID}/${FIREBASE_APP_ZONE || 'us-central1'}/auth,
},
})
)
}

It is showing 404 error for /auth

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

1 participant