-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
Bug report
Describe the bug
The admin site always tries to fetch localhost:1337/admin/project-types, even after the url is set in config/server.js.
Steps to reproduce the behavior
- Install strapi on new server with
npx create-strapi-app@latest strapi. - Configure DNS so a hostname points to the server.
- Add a url key in config/server.js with the hostname.
- Start server with
npm run develop. - Navigate to site, click on the button to set up the administrator user
- See error, open devtools to see broken API call to localhost:1337
Expected behavior
XHR call goes to hostname configured in config/server.js
Screenshots
It has a red triangle instead of a form.
Code snippets
System
- Node.js version: v16.13.2
- NPM version: 8.1.2
- Strapi version: 4.0.7
- Database: sqlite
- Operating system: Ubuntu 20.04
Additional context
goetzcmanutepowa and uzzielchaidez
Metadata
Metadata
Assignees
Labels
No labels