Thar
1
System Information
-
Strapi Version: 4
-
Operating System: Windows
-
Database: Postgres
-
Node Version: 14.17.3
-
NPM Version: 6.14.13
-
Yarn Version: -
I’m first time to step up for ‘Strapi’ and i got blank admin page and page not work. Please help me. I’m beginner.
1 Like
Thar
2
//.config/admin.js
module.exports = ({ env }) => ({
auth: {
secret: env(‘ADMIN_JWT_SECRET’),
},
apiToken: {
salt: env(‘API_TOKEN_SALT’),
},
});
//.config/server.js
module.exports = ({ env }) => ({
host: env(‘HOST’, ‘0.0.0.0’),
port: env.int(‘PORT’, 1337),
app: {
keys: env.array(‘APP_KEYS’),
},
});
//package.json
{
“name”: “strapi”,
“private”: true,
“version”: “0.1.0”,
“description”: “A Strapi application”,
“scripts”: {
“develop”: “strapi develop”,
“start”: “strapi start”,
“build”: “strapi build”,
“strapi”: “strapi”
},
“devDependencies”: {},
“dependencies”: {
“@strapi/strapi”: “4.1.12”,
“@strapi/plugin-users-permissions”: “4.1.12”,
“@strapi/plugin-i18n”: “4.1.12”,
“pg”: “8.6.0”
},
“author”: {
“name”: “A Strapi developer”
},
“strapi”: {
“uuid”: “59069c79-b971-429e-b3c6-ebdcbf9286b0”
},
“engines”: {
“node”: “>=12.x.x <=16.x.x”,
“npm”: “>=6.0.0”
},
“license”: “MIT”
}
Make sure the server has started.
Please make sure you also have anything that is .env
related like ADMIN_JWT_SECRET etc
1 Like
Thar
4
Thak you @Eventyret my problem solved.