mingxi
February 20, 2021, 9:00pm
1
Hi Guys,
I have a new problem: strapi apis work, but admin is blank. I got this problem after updating from v3.4.6 to v3.5.0. Unfortunately, it doesn’t help after I come back from v3.5.0 to v3.4.6. What is the problem? Please see attachment!
Thanks in advance!
1 Like
Have you rebuild the Admin after migrating to the new version?
2 Likes
mingxi
February 21, 2021, 8:23am
3
Many thanks for the quick response!
Yes, I not only tested “npm run build - --clean”, but also “yarn build --clean”. Admin stays blank.
1 Like
Can you share your ./config/server.js file?
You can change all the private things inside it.
mingxi
February 21, 2021, 12:06pm
5
const forgotPasswordTemplate = require('./email-templates/forgot-password');
module.exports = ({ env }) => ({
host: env('HOST'),
port: env.int('PORT'),
url: env('URL_PUBLIC'),
admin: {
auth: {
secret: env('JWT_SECRET_ADMIN'),
},
url: env('URL_ADMIN'),
forgotPassword: {
from: env('EMAIL_NO_REPLY'),
replyTo: env('EMAIL_NO_REPLY'),
emailTemplate: forgotPasswordTemplate,
},
},
cron: { enabled: true }
});
mingxi
February 21, 2021, 12:07pm
6
@sunnyson Do you see a problem in this file?
mingxi
February 24, 2021, 1:50pm
7
@sunnyson Thanks anyway, I solved that problem by getting more information about yarn install. From today on I will only install strapi via yarn.