Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Description

Fixes a 404 error when accessing /price-feeds/core/use-real-time-data/solana by adding missing redirect rules to the Next.js configuration. The issue occurred because the existing redirect only covered /price-feeds/use-real-time-data/* paths (without the "core" segment), but not the core-prefixed variants.

This PR adds:

  • Redirects for /price-feeds/core/use-real-time-data/* paths to their corresponding pull-integration subdirectory
  • Base path redirects for both core and non-core variants
  • Updates to internal MDX links that were using outdated relative paths

Type of Change

  • Fix typo/grammar
  • Update links/references

Areas Affected

  • next.config.js - Added 4 new permanent redirect rules
  • pages/price-feeds/core/use-real-time-data/push-integration.mdx - Updated SVM guide link
  • pages/price-feeds/core/price-feeds.mdx - Updated Solana guide link
  • pages/price-feeds/core/derive-cross-rate.mdx - Updated EVM guide link

Checklist

  • I ran pre-commit run --all-files to check for linting errors
  • I have reviewed my changes for clarity and accuracy
  • All links are valid and working
  • Content follows the established style guide
  • Changes are properly formatted in Markdown

Related Issues

Reported in Slack thread: https://dourolabs.slack.com/archives/C02HJ4TFLN8/p1763128591548309

Human Review Checklist

Critical items to verify:

  1. Test the reported 404 URL: Navigate to /price-feeds/core/use-real-time-data/solana and verify it redirects to /price-feeds/core/use-real-time-data/pull-integration/solana
  2. Fragment preservation: Verify that URLs with fragments (e.g., #price-feed-accounts) preserve the fragment after redirect
  3. No redirect loops: Confirm the negative lookahead regex (?!pull-integration(?:/|$)).* correctly prevents redirect loops
  4. Test both variants: Verify redirects work for both /price-feeds/use-real-time-data/solana and /price-feeds/core/use-real-time-data/solana
  5. Internal links: Click through the updated internal links in the MDX files to ensure they render correctly

Additional Notes

The redirect rules use a negative lookahead pattern to avoid matching URLs that already contain "pull-integration", preventing redirect loops. The rules are placed adjacent to the existing use-real-time-data redirect for clarity and maintainability.

Contributor Information

- Add redirects for /price-feeds/core/use-real-time-data/* paths to pull-integration subdirectory
- Add redirects for /price-feeds/use-real-time-data base paths
- Update internal links in MDX files to use correct pull-integration paths
- Fixes 404 error when accessing /price-feeds/core/use-real-time-data/solana

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

Prompt hidden (unlisted session)

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Nov 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Nov 18, 2025 8:11pm
documentation Error Error Nov 18, 2025 8:11pm

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