#Can't use custom _app.tsx?
20 messages · Page 1 of 1 (latest)
you are using the new app router (notice you have src/app instead of src/pages). so _app doesn't exist anymore, here is the migration guide: https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#migrating-_documentjs-and-_appjs
if you want to use the old router, change the name of the folder
OH
I didn't realize that!
surprised the docs don't mention that
I don't understand why i have a pages/layout and an app/layout
app/layout.tsx is the new official way to compose layouts in the app router
the pages dir doesn't have "native" ways to do this, you need to do something yourself
and pages/layout.tsx isn't valid, this would create a page at app.com/layout
what is app/page.tsx then?
It shows jsx but won't log out. Is that server rendered pages?
since it's logging to the server, I'm assuming that's what it means? What will the pages directory be then?
the root page (/)
this is the old router
see the blog post announcing the stable version of the app router: https://nextjs.org/blog/next-13-4#nextjs-app-router