diff --git a/app/[...all]/page.tsx b/app/[...all]/page.tsx new file mode 100644 index 0000000..044dbe8 --- /dev/null +++ b/app/[...all]/page.tsx @@ -0,0 +1,13 @@ +import dynamic from 'next/dynamic'; + +const App = dynamic(() => import('../../components/AppShell'), { + ssr: false, +}); + +export function generateStaticParams() { + return [{ all: ['tabs', 'feed'] }]; +} + +export default function Page() { + return ; +} diff --git a/pages/_app.tsx b/app/layout.tsx similarity index 58% rename from pages/_app.tsx rename to app/layout.tsx index 7faff10..ef93351 100644 --- a/pages/_app.tsx +++ b/app/layout.tsx @@ -1,7 +1,5 @@ -import Head from 'next/head'; +import type { Metadata, Viewport } from 'next'; import Script from 'next/script'; -import { AppProps } from 'next/app' -import { setupIonicReact } from '@ionic/react'; import 'tailwindcss/tailwind.css'; /* Core CSS required for Ionic components to work properly */ @@ -23,23 +21,27 @@ import '@ionic/react/css/display.css'; import '../styles/global.css'; import '../styles/variables.css'; -function MyApp({ Component, pageProps }: AppProps) { +export const metadata: Metadata = { + title: 'Create Next App', + description: 'Generated by create next app', +}; + +export const viewport: Viewport = { + initialScale: 1, + width: 'device-width', + viewportFit: 'cover', +}; + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { return ( - <> - - - - - - - + + {children} +