Skip to content

frontend: configure Next image remote patterns#779

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

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

Conversation

@dreamgeneX
Copy link
Copy Markdown

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

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