Skip to content

Commit

Permalink
fix: placed search index in dist/client not dist (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio authored Feb 17, 2024
1 parent 5e090eb commit 8377849
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/plugin-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,11 @@ async function prepareOramaDb(
}

export function createPlugin(options: Record<string, OramaOptions>): AstroIntegration {
let config: AstroConfig

return {
name: PKG_NAME,
hooks: {
'astro:config:done': function ({ config: cfg }): void {
config = cfg
},
'astro:build:done': async function ({ pages, routes, dir }): Promise<void> {
const assetsDir = joinPath(config.outDir.pathname, 'assets').slice(isWindows ? 1 : 0)
const assetsDir = joinPath(dir.pathname, 'assets').slice(isWindows ? 1 : 0)
if (!existsSync(assetsDir)) {
mkdirSync(assetsDir)
}
Expand Down

0 comments on commit 8377849

Please sign in to comment.