All Questions
58
questions
0
votes
0
answers
23
views
Wrong format in environment variables reading PRIVATE KEY - vercel after deployment nestjs app + firebase
I deployed my NestJs appliaction to vercel. and added my environment variables through the UI.
when running firebase admin add and trying to send a message I get an error Notification sending
failed ...
0
votes
0
answers
45
views
Why does this error occur while deploying vercel?
const firebaseAdminConfig = {
privateKey: (process.env.NEXT_PUBLIC_FIREBASE_PRIVATE_KEY as string).replace(/\\n/g, '\n'),
clientEmail: process.env.NEXT_PUBLIC_FIREBASE_CLIENT_EMAIL,
projectId: ...
2
votes
1
answer
86
views
Dependencies are missing in my Express app deployed to Vercel
Ok, so I created a simple API for recovery of files stored on Firebase Storage and deployed it to Vercel for commodity, but once the deployment is done the next error is shown for firebase/storage in ...
0
votes
0
answers
36
views
Running firebase CLI commands on Vercel throws: "firebase: command not found" error
We are currently hosting our application on Vercel and encountering an issue when attempting to execute Firebase CLI commands.
When trying to deploy Firestore rules using Firebase CLI within our ...
0
votes
1
answer
231
views
FCM working on localhost but not on production
I utilized FCM to send notifications in my web app. I can send and receive notifications in my localhost, so everything is working perfectly on localhost. However, I can only receive notifications (...
0
votes
0
answers
51
views
How to send the firebaseConfig file to deploy on Vercel?
I created a project integrated with Firebase but I don't know how to send the private settings to deploy on Vercel.
I want to send these configurations to deploy on vercel:
import { initializeApp } ...
1
vote
1
answer
223
views
Firebase project url returns a 404 after Vercel app successfully authenticates using Firebase
I have a Sveltekit app that uses Firebase for authentication and for Cloud Firestore. Running the app locally with the Firebase emulator, everything works. When deploying with Vercel, I have the ...
0
votes
0
answers
27
views
Firebase Client SDK causing 404 and Offline Issues in SvelteKit Web App on Vercel
I am encountering an issue with my SvelteKit web app deployed on Vercel, where the frontend shows a 404 error, and the Vercel logs indicate that Firebase cannot retrieve the document as it is offline. ...
0
votes
0
answers
68
views
Next.js Route Handler when deployed on Vercel with Firestore doesn't show on firebase console the added data only in local mode
When using Next.js 14 with Firebase, I encountered an issue with the POST method in my client-side code. The goal is to send form data to a route handler. On the route handler, I extract the data from ...
0
votes
0
answers
538
views
Firebase error: Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=permission-denied]
I'm facing an annoying problem with my next js app with firebase. So far in localhost it was all fine, I can read and write normally. I deployed it to vercel, but it can't reach my firebase database. ...
0
votes
0
answers
209
views
Next.js 13.5 error on production - json.parse: unexpected end of data at line 1 column * of the json data
I have an app developed in Next.js 13.5 (not app router) that obtains firestore data by making a call to a route api using useInfiniteQuery from tankstack/reack query v4 for pagination.
In development ...
0
votes
0
answers
55
views
Why JWT token is not working after deploying to firebase?
const setAuthToken = token => {
if(token){
axios.defaults.headers.common['Authorization'] = token;
}
else {
delete axios.defaults.headers.common['Authorization'];
}
...
0
votes
0
answers
86
views
t.map() is not a function in vercel error
My code is running successfully in local environment, but when I deployed it to VERCEL and the build completed successfully it console logs error such as .map is not a function.
I am passing an array ...
0
votes
0
answers
160
views
Firebase stuff of My Nextjs App doesn't work after the success deployment to Vercel
my gorgeous friend on the Internet!!
So, I could successfully deploy my next.js + Firebase web app to Vercel. I saw the congratulation screen. Then, I jumped to the real website, and it showed ...
2
votes
1
answer
662
views
Vercel Deployment: Firebase Configuration Environment Variables Undefined
I'm having trouble deploying my React application on Vercel. I'm using Firebase in my application and I've set up the environment variables for my firebase.js as follows:
// Import the functions you ...