Getting a “Route has an invalid export” error when building my website
Hi I’m getting a “Route has an invalid export” error when building my code on vercel. It’s working fine locally so I’m not too sure what I’m doing wrong here.
Vercel Next.js public folder counts as a serverless function
I’m using Vercel to deploy a simple website with gallery.tsx
and gallery/[slug].tsx that display all the images in a certain folder using fs
. I do not have any APIs, so I don’t know why anything would count as a serverless function. I used create-next-app to make the website.
With Next.js, can I make a subdirectory also a standalone app?
I have a Next.js where the app is located in //…/src/app and hosted on MyFakeDomain.com. I have two separate multi-page javascript games that live in separate subdirectories –
unhandledRejection Error: Cannot find module ‘next/dist/compiled/next-server/pages.runtime.prod.js’
I have a next.js project which when i run npm run build it builds perfectly but when deploying it to vercel it keeps showing the same error
unhandledRejection Error: Cannot find module ‘next/dist/compiled/next-server/pages.runtime.prod.js’
Weird Nextjs middleware rewrite behaviour
I need help on an issue im currently struggling with. I used Vercels platforms starter kit and took the middleware parts for the custom domain rewrites. The rewrites itself do work but when I access the home folder I can also access the pages that should only be accessible via the subdomain (localhost:3000/tickets should not work only test.localhost:3000/tickets should).
getServerSideProps returns error 500 only in production
I need to pre-fetch authentication status from the server.
NextJs/React : how to prevent click event when UIs are overlayed?
I can’t figure out with NextJs/React how to prevent click event when UIs are layered.
But I am sure it’s doable.
Restricted vertical scrolling in Next.js project in Android Phone
In my Next.js project, vertical scrolling is restricted on home page. But, when I load the homepage directly, the vertical scrolling happens however, when I navigate to the homepage from some other page, vertical scrolling is restricted. Any solution? Any help would be highly appreciated. And this happens only on my android phone. In PC it works fine.
Dynamic routes error in Vercel after Nextjs update: Cannot find module ‘next/dist/server/future/route-modules/pages/vendored/contexts/amp-context’
I’m getting this error in Vercel preview for dynamic routes using getStaticPaths and getStaticProps after upgrading Nextjs from 13.4.8 to 14.2.4. Fallback paths are working.
Caching expensive operations across pages being built in a static build on Next.js
When using generateStaticParams
to specify pages to be built statically, and those pages rely on an expensive operation, how do I cache the result of that operation across all page builds? cache
and unstable_cache
don’t work, and the pages appear to be built twice when doing an npm run build
.