Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin-search): get api route from useConfig #10632

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

suphon-t
Copy link
Contributor

This fixes #10631.

Originally the api basepath for the reindex button is resolved during plugin initialization. Looks like this happens before payload overrides the config with the basePath from the next config.
I've changed it so that it uses the useConfig hook, and manually tested that it works.

CleanShot 2568-01-17 at 16 03 16@2x

@suphon-t suphon-t changed the title fix(search): get api route from useConfig fix(plugin-search): get api route from useConfig Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't reindex search when using next's basePath option
1 participant