Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the `rewrites` function in `next.config.mjs` to include a new structure for handling URL rewrites, adding `beforeFiles` and `afterFiles` sections, and introduces several new rewrite rules for deprecated endpoints. ### Detailed summary - Changed the return value of the `rewrites` function from an array to an object. - Added `afterFiles` section with existing rewrite rules for `/info/token/:address`, `/info/pool/:address`, and `/.well-known/vercel/flags`. - Introduced `beforeFiles` section with new rewrite rules for deprecated endpoints at `/info/v3` and its sub-paths. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information