Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated to BunnyCDN for image upload #337

Merged
merged 6 commits into from
Sep 15, 2024

Conversation

SujithThirumalaisamy
Copy link
Contributor

@SujithThirumalaisamy SujithThirumalaisamy commented Sep 14, 2024

  • As we are not using s3 for CDN. Migrated the image upload to BunnyCDN
  • Upload happens via the BE because Bunny uses API key to authenticate content upload. So you cannot do it in FE

Copy link
Collaborator

@VineeTagarwaL-code VineeTagarwaL-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know your thoughts on this approach. If it makes sense, please push the updates, and I'll merge them afterward. Also, pull the latest changes from the main branch and incorporate your updates into the sample and README. Thanks!

src/app/api/upload-to-cdn/route.ts Outdated Show resolved Hide resolved
@VineeTagarwaL-code
Copy link
Collaborator

Also please add the domain nextjs.config.js

here it is for your easiness
domains: ['storage.bunnycdn.com'],

image

@SujithThirumalaisamy
Copy link
Contributor Author

Also please add the domain nextjs.config.js

here it is for your easiness domains: ['storage.bunnycdn.com'],

image

Will do it while deploying. We will not be using the base storage.bunnycdn.com we will use the custom cdn url

@VineeTagarwaL-code VineeTagarwaL-code merged commit 167def8 into code100x:main Sep 15, 2024
1 check passed
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.

2 participants