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

dev server not running #12

Closed
piyush168713 opened this issue Mar 21, 2023 · 4 comments
Closed

dev server not running #12

piyush168713 opened this issue Mar 21, 2023 · 4 comments

Comments

@piyush168713
Copy link

piyush168713 commented Mar 21, 2023

#9 (comment)

After running npx next dev, it is not working.

error

.env.development

// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
  apiKey: "AIzaSy****************8",
  authDomain: "twitter-cl*******.firebaseapp.com",
  projectId: "twitter-clone-*****",
  storageBucket: "twitter-clo****appspot.com",
  messagingSenderId: "1********99",
  appId: "1:1069671**********************de",
  measurementId: "G-J******FL8"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);

also used this config but not working

# Dev URL
NEXT_PUBLIC_URL=http:https://localhost:8080/

# Firebase
NEXT_PUBLIC_API_KEY=AIz*************************M8
NEXT_PUBLIC_AUTH_DOMAIN=twitter-clo**************app.com
NEXT_PUBLIC_PROJECT_ID=twitter-clo**********
NEXT_PUBLIC_STORAGE_BUCKET=twitter-clo*************pot.com
NEXT_PUBLIC_MESSAGING_SENDER_ID=10696**********99
NEXT_PUBLIC_APP_ID=1:106967153**********************9de
NEXT_PUBLIC_MEASUREMENT_ID=G***********L8
@TBNRDev
Copy link

TBNRDev commented Mar 22, 2023

Oh, Hi! To fix this issue, try my own solution.
Go to vercel.app and then sign up with your GitHub account and then deploy your repo. Then put all your token/secret in Tokens/Secrets section. Make sure you use the api name.

@piyush168713
Copy link
Author

Thankyou @TBNRDev for guiding me.....

https://github.com/piyush168713/twitter-clone
Can you please check the configuration or where eroor occurs in my repo.

Deployement is getting failed in vercel.app
Kindly guide me.

@ccrsxx
Copy link
Owner

ccrsxx commented Mar 22, 2023

Try reinstalling the dependencies again. Delete the node_modules and .next folder first before installing it.

@piyush168713
Copy link
Author

piyush168713 commented Mar 22, 2023

I have reinstalled everything....This project is now up and woking.
Thankyou so much for guiding me all the way.....

@ccrsxx @TBNRDev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants