Skip to content

admin/project-type endpoint does not pick up hostname while using "strapi start" #12125

@rahuljaisinghani

Description

@rahuljaisinghani

Bug report and description

When I start strapi server with the command "strapi start" and access the admin dashboard with https:///admin/auth/login, endpoints admin/project-type and admin/init are resolved using localhost:1337 instead of my domain
Screenshot 2022-01-06 at 8 27 02 PM
Screenshot 2022-01-06 at 9 39 13 PM

This works file when I start strapi server using "strapi build" i.e above endpoints get resolved through my domain

Screenshot 2022-01-06 at 8 34 26 PM

I have set up strapi using docker. version is 4.0.2 (node v14.16.0).
Environment

System

  • Node.js version: v14.16.0
  • NPM version: 6.14.11
  • Strapi version: 4.0.2
  • Database: postgres
  • Operating system: official strapi/base image

Additional context

Add any other context about the problem here.

maybe this the error reason

backend: 'http://localhost:1337',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions