Closed CallMeL closed 6 months ago
Hi there! I have fixed the issue you provided.
You need to perform the following steps:
dev
dir and perform a git pull
to fetch the latest code to your local..env
file. Then, back your site, log in to the/dashboard
, go to the gallery to upload images.If you are deploying on Vercel, you need to go to Settings
and set up Environment Variables
by providing the corresponding Key and Value. Make sure to set NEXTAUTH_URL
to the deployment address on Vercel, rather than http://localhost:3000/
.
@ECarry Thanks for the reply!
In the /dashboard
page, what is the password for it? I tried the password set in http://localhost:5555
, but it says Invalid credentials!
, should I set in the .env
file?
Thanks again!
password: Password use bcrypt hash, you can generate at https://bcrypt.online/ and Then copy the generated code to http://localhost:5555 User model password
Of course, you can set up the username, password and email in advance in the .env
file. You can see the new additions
# init user
USER_EMAIL = test@test.com
USERNAME = test
USER_PASSWORD = test
in the .env.example
file, but you need to git pull
the latest code first and go to http://localhost:5555 to delete your old account.
Thank you so much! It solved my problem perfectly!
Hi there! Excuse me for taking your time again. I tried to add photo record on prisma, but in the home page it shows no data.
I'm not sure whether the localhost:5555 is the right place to upload images, or there is another dashboard page for uploading, especially after we deploy the website using Vercel.
Many thanks for your time and help!