Closed Tanhe closed 1 year ago
starlight
0.9.0
astro
3.0.6
npm
Windows
Chromium (Edge)
Starting from a brand new project.
npm run build
npm run preview
When you select the search box the page fails to load the pagefind scripts as it's looking for _pagefind/ but the dist folder has pagefind/.
_pagefind/
pagefind/
Looking at this it might be this hardcoded bundlePath in Search.astro:
Search.astro
As a separate note, the build issues this warning:
There is a required change necessary here in index.ts:
^^ --source changed to --site makes the warning go away
No response
Closed in #676!
What version of
starlight
are you using?0.9.0
What version of
astro
are you using?3.0.6
What package manager are you using?
npm
What operating system are you using?
Windows
What browser are you using?
Chromium (Edge)
Describe the Bug
Starting from a brand new project.
npm run build
npm run preview
When you select the search box the page fails to load the pagefind scripts as it's looking for
_pagefind/
but the dist folder haspagefind/
.Looking at this it might be this hardcoded bundlePath in
Search.astro
:As a separate note, the build issues this warning:
There is a required change necessary here in index.ts:
^^ --source changed to --site makes the warning go away
Link to Minimal Reproducible Example
No response
Participation