Skip to content

static files are not loading in development environment #58

Open
@jay51

Description

@jay51

In my renderer I'm trying to load an audio file placed in static/audio/sound.mp3, but it gives me file 404 not found.

const mp3  = path.join(__static, "/audio/sound.mp3");
const audio = new Audio(mp3);
audio.play();

following the docs i used the __static variable but it's still not working.
I also tried with images and it still not working.

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