We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/pitops/nextjs-search-params-issue
you have a category/[slug]/page.tsx with the following
interface CategoryPageProps { params: { slug: string } searchParams: { slug: string } } const CategoryPage: React.FC<CategoryPageProps> = async ({ params, searchParams }) => { console.log('params', params) console.log('searchParams', searchParams) return <div>test</div> } export default CategoryPage
I try the following URL: http://localhost:3000/category/test?slug=1
locally -> searchParams { slug: 1 } vercel -> searchParams {}
search params object should be filled in production as well
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 Binaries: Node: 19.6.0 npm: 9.5.0 Yarn: 1.18.0 pnpm: N/A Relevant Packages: next: 14.1.0 eslint-config-next: 13.5.4 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
App Router
Vercel (Deployed)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Link to the code that reproduces this issue
https://github.com/pitops/nextjs-search-params-issue
To Reproduce
you have a category/[slug]/page.tsx with the following
I try the following URL: http://localhost:3000/category/test?slug=1
locally -> searchParams { slug: 1 }
vercel -> searchParams {}
Current vs. Expected behavior
search params object should be filled in production as well
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 Binaries: Node: 19.6.0 npm: 9.5.0 Yarn: 1.18.0 pnpm: N/A Relevant Packages: next: 14.1.0 eslint-config-next: 13.5.4 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
App Router
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: