Skip to content

Relative path for requesting static assets in dev mode #11063

@suyashdeshpande

Description

@suyashdeshpande

When I do a prod build, static assets are requested from a relative path like ./static/js/bundle.js.
When I do a dev build. static assets are requested from absolute path like /static/js/bundle.js.
NOTE: I have an entry of "homepage": "." in my package.json

I want relative paths in my dev mode also. Any leads?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions