refactoring: upgrade nextjs; api => server actions
This commit is contained in:
1 parent
447be7d021
commit
03cfacf91c
45 files changed
+1034
-923
No files matched your search
+10
-8
@@ -1,5 +1,5 @@
|
||||
import React, { ReactNode } from 'react';
|
||||
import type { Metadata } from 'next';
|
||||
import type { Metadata, Viewport } from 'next';
|
||||
import { cookies } from 'next/headers';
|
||||
|
||||
import Header from '@/components/Header';
|
||||
@@ -9,13 +9,15 @@ import '@/styles/index.css';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Movie advisor',
|
||||
description: 'It will help you find a movie for evening',
|
||||
viewport: {
|
||||
width: 'device-width',
|
||||
initialScale: 1,
|
||||
maximumScale: 1,
|
||||
userScalable: false
|
||||
}
|
||||
description: 'It will help you find a movie for evening'
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
themeColor: 'black',
|
||||
width: 'device-width',
|
||||
initialScale: 1,
|
||||
maximumScale: 1,
|
||||
userScalable: false
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
|
||||
Reference in new issue
Block a user