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

feat: implement proxy service for metadata and images #451

Merged
merged 17 commits into from
Feb 4, 2025

Conversation

rogaldh
Copy link
Contributor

@rogaldh rogaldh commented Jan 31, 2025

This PR implements proxy service for metadata and images. Here is needed configuration:

  • NEXT_PUBLIC_METADATA_ENABLED - flag to turn service on/off;
    "true" to enable
  • NEXT_PUBLIC_METADATA_TIMEOUT - abort fetching metadata for too long;
    default: 10_000ms
  • NEXT_PUBLIC_METADATA_MAX_CONTENT_SIZE - maximum for content size;
    default: 1_000_000 bytes
  • NEXT_PUBLIC_METADATA_USER_AGENT - will be used as user-agent header
    to represent Explorer's request for other services;
    default: Solana Explorer

Configuration to add to .env

- `NEXT_PUBLIC_METADATA_ENABLED` - flag to turn service on/off;
  "true" to enable
- `NEXT_PUBLIC_METADATA_TIMEOUT` - abort fetching metadata for too long;
  default: 10_000ms
- `NEXT_PUBLIC_METADATA_MAX_CONTENT_SIZE` - maximum for content size;
  default: 100_000 bytes
- `NEXT_PUBLIC_METADATA_USER_AGENT` - will be used as user-agent header
  to represent Explorer's request for other services;
  default: Solana Explorer
Copy link

vercel bot commented Jan 31, 2025

@rogaldh is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@ngundotra
Copy link
Collaborator

@ngundotra ngundotra force-pushed the feat/metadata-proxy branch from 2b16dff to a62754c Compare February 4, 2025 16:45
@ngundotra ngundotra merged commit ad529a6 into solana-foundation:master Feb 4, 2025
1 of 2 checks 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