Giter Club home page Giter Club logo

Comments (16)

legacyxdd avatar legacyxdd commented on September 17, 2024 1

haha i knew it actually i am thinking to add email in there profile where visitor can directly email them if they want

ohh I understand, that's actually a good idea. Good luck on the new project.

from mysocials.

r2hu1 avatar r2hu1 commented on September 17, 2024

haha i knew it actually i am thinking to add email in there profile where visitor can directly email them if they want

from mysocials.

r2hu1 avatar r2hu1 commented on September 17, 2024

i am currently working on https://url-shrtner.vercel.app after it i will try but its not an bug its an upcoming feature 😁

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

btw removing the email from NextResponse in api files doesn't seem to be working. I would be really happy if you can tell me an other way to fix it or I think I will be waiting for the update 🙌🙌

from mysocials.

r2hu1 avatar r2hu1 commented on September 17, 2024

actually i checked it, the schema has email property thats why it is returning it but if you really wanto remove the email return everything except email in app/api/page/get/route.js like its returning return NextResponse.json({ data }, { status: 200 }); change it to {data.name, data.bio, ....continue} then it will not return email

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

Hmm, when I do that it returns this error:
TypeError: Cannot read properties of undefined (reading 'image')
app(page)_components\UserSocials.jsx (42:44) @ image

(btw data.name ... gave syntax error, I did name, bio ...)

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

and when I remove setImage(data.data.image); then it gives same error for name in here setName(data.data.name);

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

Hey bro, I also fixed that issue by removing the email part from the data in the API.

How did you host the project on Vercel? When I try to host it, the API doesn't work at all.

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

I still couldn't figure it out, searched on Google aswell but nothing familiar comes up. 😥

from mysocials.

r2hu1 avatar r2hu1 commented on September 17, 2024

did you added the env variables in vercel project settings? make sure to redeploy after adding it

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

Yes I added them when building, also redeployed the project now. The API still doesn't work, user profiles and dashboard doesn't load. 🤔

from mysocials.

r2hu1 avatar r2hu1 commented on September 17, 2024

can i get the repo url?

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

Hey bro really sorry for the late reply. I didn't had access to my pc.

Instead of the repo url, can you just tell me how you published this project on vercel? I did add my variables too but it doesn't work. I can access the site but the database can't be reached. (so user pages doesn't load)

from mysocials.

r2hu1 avatar r2hu1 commented on September 17, 2024

i just imported this repository on vercel dashboard thats it and redeploy after adding env variables

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

I did the exact same, but my api/get doesn't load. I can see this on chrome dev tools

An error occurred with your deployment
FUNCTION_INVOCATION_TIMEOUT

from mysocials.

legacyxdd avatar legacyxdd commented on September 17, 2024

I searched for it online but nothing solved the problem 🤔

from mysocials.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.