Skip to content

Static file serve in loopback 4 #764

Description

@conqsys

I'm using express for serving static folder using loopback 4 like

let dir = path.join(directory)
server.use(express.static(dir));
server.listen(3001);
But my application is running on the 4200 port and server.listen(3001) creates A new port but i want to do the same on 4200 If i'm giving server.listen(4200) then that not start because its can't run on two server on same port

Is that possible to serve file on existing port OR ANY METHODE INBUILD IN LOOPBACK 4 LIKE THAT LOOPBACK 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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