Skip to content

Commit

Permalink
fix(assets): Remove Node deps from index of assets (#7691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Jul 17, 2023
1 parent b0d3652 commit cc0f81c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-garlics-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix not being able to build on Vercel Edge when `astro:assets` was enabled even when using a non-Node image service
2 changes: 0 additions & 2 deletions packages/astro/src/assets/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export { getConfiguredImageService, getImage } from './internal.js';
export { baseService, isLocalService } from './services/service.js';
export { type LocalImageProps, type RemoteImageProps } from './types.js';
export { emitESMImage } from './utils/emitAsset.js';
export { imageMetadata } from './utils/metadata.js';
2 changes: 1 addition & 1 deletion packages/astro/src/content/runtime-assets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PluginContext } from 'rollup';
import { z } from 'zod';
import { emitESMImage } from '../assets/index.js';
import { emitESMImage } from '../assets/utils/emitAsset.js';

export function createImage(pluginContext: PluginContext, entryFilePath: string) {
return () => {
Expand Down

0 comments on commit cc0f81c

Please sign in to comment.