travis-r6s / gridsome-plugin-flexsearch

Add lightning fast search to Gridsome with FlexSearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version:0.1.11 - flexsearch.json 404

chenhongen opened this issue · comments

when I upgrade to 0.1.11,It can't work and show
"gridsome.client.js?aebf:3 GET http://localhost:8081/cheese/flexsearch.json 404 (Not Found)" in console.
image

And after clean npm cache

Sorry for this - could I ask if you have a pathPrefix set in your gridsome.config.js? If so, it may be that it is trying to use that in development, when it shouldn't.

Yes,I set "pathPrefix" in gridsome.config.js.It can use normal under version of 0.1.10 in development .But when I deploy it to my site,flexsearch.json lose the prefix path again.like this:
image

So, my question is that with "pathPrefix" in gridsome.config.js
development 0.1.10【√】 0.1.11 【x】
production 0.1.10【x】 0.1.11 【√】

I have just published 0.1.12, which should contain a fix for this. Could you let me know if that works correctly?

When I upgraded to 0.1.12,It worked well in both environment.Thanks