-
-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
If I add an auth in src/theme/Root.js, search-local can't parse meta data:
[ERROR] Error: The `docusaurus_tag` meta tag could not be found. Please make sure that your page is wrapped in the `<Layout>` component (from `@theme/Layout`). If it is, then this is a bug, please report it.
src/theme/Root.js:
export default function Root({children}) {
const [isConnected, setIsConnected] = useState(false); // Manage authentification
return <>{
isConnected ? (
<>{children}</>
) : (
<div className="login">
<div className="login__container">
<button className="login__btn" onClick={() => setIsConnected(true)}>
Login
</button>
</div>
</div>
)
}</>;
}
Could I first build the index in dev env without authentification and then build in prod and use the index generated previously?
Thanks,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels