Skip to content

Conversation

@CuteLeaf
Copy link

Fix #483, Astro v5 with new API cause image covers to not load

I don't know if it's the best solution, but it already shows the cover normally.

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Related Issue

#483

Changes

export function getFileDirFromPath(filePath: string): string {
	return filePath.replace(/^src\//, '').replace(/\/[^\/]+$/, '');
}

Screenshots (if applicable)

image image

@vercel
Copy link

vercel bot commented Nov 17, 2025

@CuteLeaf is attempting to deploy a commit to the zephyirdgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@CuteLeaf
Copy link
Author

@L4Ph @saicaca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant