Skip to content

swa with nuxt #461

@manekinekko

Description

@manekinekko

Discussed in #442

Originally posted by sig9 April 11, 2022
I am running into an issue where I see 405 errors when I run swa in front of nuxt using the content module.

With silly debugging turned on I see the method POST is not allowed to a path starting with /_content/ . Presumably because this does not start with /api.

Can there be more than one apiPrefix for a dev server setup?

I've experimented unsuccessfully with adding a route in staticwebapp.config.json.
{
"route": "/_content/*",
"allowedRoles": ["anonymous","authenticated"]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions