Skip to content

Add failing path to errors #111

@kdong007

Description

@kdong007

I have my plugin configured as

exports.plugin = {
    register: server => {
        server.route([
            {
                method: "GET",
                path: "/{param*}",
                handler: {
                    directory: {
                        path: "./build",
                        redirectToSlash: true,
                        index: true,
                    },
                },
            },
        ]);
    },
    name: "share",
};

my static assets are all in ./build folder, but all i got is

{
statusCode: 404,
error: "Not Found",
message: "Not Found"
}

Is there some way I can see where my url is mapped to?

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions