Skip to content

Commit

Permalink
fix built wasm location for SSG builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Sullivan committed Sep 14, 2022
1 parent 9430d38 commit 446b80b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/image/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function integration(options: IntegrationOptions = {}): AstroInte
},
'astro:build:done': async ({ dir }) => {
if (resolvedOptions.serviceEntryPoint === '@astrojs/image/squoosh') {
await copyWasmFiles(_config.output === 'static' ? dir : _buildConfig.server);
await copyWasmFiles(_config.output === "static" ? new URL('./chunks', dir) : _buildConfig.server);
}

if (_config.output === 'static') {
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 446b80b

Please sign in to comment.