Relative Content

Tag Archive for reactjsnext.jsvercel

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.

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).

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.