Telegram-Mini-Apps / nextjs-template

Telegram Mini Apps application template using Nex.jst, TypeScript, TON Connect and tma.js.
131 stars 46 forks source link

Is the app router unavailable? #2

Closed Mergemat closed 3 months ago

Mergemat commented 4 months ago

Hi! I've seen your lib rework and now i don't understand how it will work with app router... Are y planning to add examples for app router?

heyqbnk commented 4 months ago

Hey. I don't really have much fresh experience working with Next.js. Could clarify what App Router is?

Mergemat commented 4 months ago

Hey. I don't really have much fresh experience working with Next.js. Could clarify what App Router is?

https://github.com/Telegram-Mini-Apps/nextjs-template/tree/72cf7256284212a239b8711d1f6447246e7c1f4a thats a prev version of this template, you used app router here.

in app router there is no 'pages' directory, instead every folder inside 'app/' is a page if it has 'page.tsx' inside. there's a lot of differences tbh

Mergemat commented 4 months ago

there was another template actually, where you used <DisplayGate/> component.

NicolasCassunde commented 3 months ago

up

heyqbnk commented 3 months ago

Hey! I am currently working on the template remake using the App Router. I will let you know, when the template is updated

heyqbnk commented 3 months ago

Done.

Mergemat commented 3 months ago

Done.

Thats awesome! Thank you very much