hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite
MIT License
1.84k stars 127 forks source link

[Question] - How to define title, meta, middlewares for React? #357

Closed sujit-baniya closed 10 months ago

sujit-baniya commented 1 year ago

Description

There's not much example for React.

I'm trying to use this plugin in react, everything works fine. But unable to define the page title, meta or middlewares like auth. Please suggest how could I do it?

Suggested solution

Add extended examples for React

Alternative

No response

Additional context

No response

Validations

hannoeru commented 10 months ago

We only provide a way to generate routes from file structure, so please check router-router's documentation for more detials.