Skip to content

frontend: configure Next image remote patterns#781

Open
dreamgene wants to merge 1 commit intoMyFanss:mainfrom
dreamgene:issue-701-image-cdn-configuration
Open

frontend: configure Next image remote patterns#781
dreamgene wants to merge 1 commit intoMyFanss:mainfrom
dreamgene:issue-701-image-cdn-configuration

Conversation

@dreamgene
Copy link
Copy Markdown
Contributor

Summary

  • replace the wildcard Next/Image remote host config with an environment-driven allowlist
  • add a tested parser for CDN hostnames and full remote pattern URLs
  • document the new NEXT_PUBLIC_IMAGE_REMOTE_PATTERNS configuration in .env.example

Testing

  • npx vitest run src/lib/image-remote-patterns.test.ts
  • npm run build

Notes

  • npm run lint is currently blocked by a pre-existing ESLint flat-config plugin redefinition error for jsx-a11y

Closes #701

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 23, 2026

@dreamgene Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Image CDN configuration

1 participant