Skip to content

[Bug]: middleware strapi::public strange example  #2324

@hugzenfeu

Description

@hugzenfeu

Link to the documentation page or resource

https://docs.strapi.io/dev-docs/configurations/middlewares#public:~:text=any%20configuration%20options.-,public,The,-public%20middleware%20is

Describe the bug

the only option listed is not in the example of implementation and doesn't seem to work in my installation of strapi (witch is not up to the last realese of V5)
I infer that it should look like that in config/middlewares.ts:

  {
    name: 'strapi::public',
    config: {
      maxAge: 86400000 // 1 day in milliseconds
    },
  },

but for me it does not work
I have no clue what should i do

Additional context

No response

Suggested improvements or fixes

No response

Related issue(s)/PR(s)

No response

Metadata

Metadata

Assignees

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