Pages or App ?

I'm going to create a production project with nextjs, but confused, What is the best option pages/ or app/ ? Also i love the pages/ but i guess nextjs will remove it in one, two year ?? Or it stays forever??
B
Benjamin311d ago
If you're not already familiar with pages, you should directly use app, the learning curve won't be very different. The T3 stack still uses pages, I don't know if it's a choice or just not updated.
P
Pranoy311d ago
Basically i wanna use pages, but if nextjs deprecated it or remove it, then is a big headache to migrate
B
Benjamin311d ago
I don't believe pages will disappear in the next years. Personally, I'd use app from scratch to be sure to be able to use new features (not sure they will all be available with pages).
C
cje311d ago
the most they'll do to pages is deprecate it, but it's not fully going away anytime soon too many projects using it
P
Pranoy309d ago
So what should I do, should i wait for t3 for an stable update with app/ or use the pages/ ?
Want results from more Discord servers?
Add your server
More Posts
Wait for ISR Revalidation (rather than showing stale data)Hey guys! I had a quick question about using ISR in Next.js (app router) with Vercel. As outlined byWhat about Panda CSS?Hey there! I can't find any talk about using Panda CSS over Tailwind on this Discord. I would like tNextAuth sign in function not working properlyhey, i have nextauth set up with `credentialsProvider` on, i have the following onClick on a button:Fetching only onceso i have an authToken being stored in the local storage and i want to send it in a POST request eacimport mysql into planetscaleHas anyone imported a database from your local pc into planetscale? With regard to the hostname whatPromise.all is not working in transaction in drizzleCan anyone tell me why this transaction is not working in drizzle? it does not throwing any error bshortest import path with eslint + tsconfig.json pathsIs there any way to configure eslint (I am using `eslint-plugin-import` + `eslint-import-resolver-tyGitHub workflow doesnt runI have this PR here which requires the CI to pass but it doesnt run. Do I miss something or have I sgetServerAuthSession returning null in productionI have absolutely no clue how that is happening because I've implemented the same solution in anotheNot able to get the jwt token through cookiesHii all I'm trying to send the jwt token through cookies like first image .. Now I 'm trying to fetcNext api routes stoped working since clerk installedI installed clerk in my app and auth is working as expected. My probles is that all my api routes stDisable batching multiple useQueryI'm using useQuery as below: ``` const CompanyPage: NextPage<{ asxCode: string }> = ({ asxCode }) =>TypeScriptHi guys i am trying to learn TypeScript. Is there any good resources you can suggest besides the docZod type email string and number message not working correctlyHey guys i am facing a issue i am also new to typescript ```ts const authschem = z.object({ emailnext auth jwt sessionHello im having some problems with making the session for credentials provider i managed to make it How to pass typesafe react-hook-form form objectI'm using react-hook-form to handle update user profile form. ```typescript const form = useForm<FoFlattening data structure on backend or frontend commonly?like nested data structure to become array of objects with 1level depth ,u flat it on backend or froGetting drizzle working with next-authHas anyone gotten drizzle working with next-auth? Here's the implementation that I've been using: h