Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes the basePath configuration from the Next.js documentation site, changing it to resolve from the root path instead of the /applemusic-like-lyrics subdirectory.
Changes:
- Removed
basePath: "/applemusic-like-lyrics"from Next.js configuration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| output: 'export', | ||
| reactStrictMode: true, | ||
| basePath: "/applemusic-like-lyrics", | ||
| pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"], |
There was a problem hiding this comment.
Removing the basePath requires updating hardcoded paths in the codebase. The following files still contain the old /applemusic-like-lyrics prefix: src/app/[lang]/page.tsx (line 13, Image src), src/app/layout.tsx (line 8, icons path), and README.md (line 5, documentation link). These paths should be updated to remove the /applemusic-like-lyrics prefix and use root-relative paths instead.
| output: 'export', | ||
| reactStrictMode: true, | ||
| basePath: "/applemusic-like-lyrics", | ||
| pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"], |
There was a problem hiding this comment.
The README.md at line 5 still references the old URL path with /applemusic-like-lyrics. If the site will be deployed to a different location or root path, this documentation link needs to be updated to reflect the new deployment URL.
移除 base,直接从根解析