Skip to content

Commit

Permalink
fix(image): fix image building logic
Browse files Browse the repository at this point in the history
  • Loading branch information
obviyus committed Feb 11, 2023
1 parent 3cf2f9f commit 7b67715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function getImageSlug(filepath: string) {
export async function getImageDate(image: Record<string, any>): Promise<Date> {
let { src: filepath } = image.default;
filepath = filepath.replace('/@astroimage/', 'src/');
filepath = filepath.replace('/@astroimage/', '/');
// Hack to check if file exists, if not, probably running build
if (!fs.existsSync(filepath)) {
Expand Down

0 comments on commit 7b67715

Please sign in to comment.