Created
August 25, 2022 19:04
-
-
Save Marktawa/ab7e95bc1bad822f40a1662abca672fe to your computer and use it in GitHub Desktop.
Fix for “Strapi: Warning: an error occurred while requesting the API”
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Procedure | |
* | |
* Update config/server.js with the code below | |
* In your terminal run: | |
* npm run build | |
* then | |
* npm run develop | |
*/ | |
module.exports = ({ env }) => ({ | |
host: env('HOST', '127.0.0.1'), | |
port: env.int('PORT', 1337), | |
app: { | |
keys: env.array('APP_KEYS'), | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment