Skip to content

FRONTEND_PATH is not applied for assets URLs #4458

@juangon

Description

@juangon

Describe the bug
When using frontend_path parameter (in my case used as env variable), when referencing assets in /assets folder, frontend_path is not added, throwing 404 errors for those resources

To Reproduce
Execute reflex populating FRONTEND_PATH env variable. Add some assets in /assets folder and reference them as stated in documents (prefixing them with slash '/').

Expected behavior
Assets path should add FRONTEND_PATH to the referenced resources.

Screenshots

Specifics (please complete the following information):

  • Python Version:3.12
  • Reflex Version: 0.6.5
  • OS: Linux
  • Browser (Optional):

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAnything you want improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions