fix: move themeColor from metadata to viewport export
Resolves Next.js deprecation warnings about unsupported metadata themeColor. v1.43.1
This commit is contained in:
parent
7e343b29e4
commit
a8be3361be
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.43.0",
|
"version": "1.43.1",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -10,15 +10,15 @@ export const viewport: Viewport = {
|
|||||||
initialScale: 1,
|
initialScale: 1,
|
||||||
maximumScale: 1,
|
maximumScale: 1,
|
||||||
userScalable: false,
|
userScalable: false,
|
||||||
|
themeColor: [
|
||||||
|
{ media: '(prefers-color-scheme: light)', color: '#ffffff' },
|
||||||
|
{ media: '(prefers-color-scheme: dark)', color: '#111111' },
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'My Weekly To Do List',
|
title: 'My Weekly To Do List',
|
||||||
description: 'A simple, designy to-do app.',
|
description: 'A simple, designy to-do app.',
|
||||||
themeColor: [
|
|
||||||
{ media: '(prefers-color-scheme: light)', color: '#ffffff' },
|
|
||||||
{ media: '(prefers-color-scheme: dark)', color: '#111111' },
|
|
||||||
],
|
|
||||||
appleWebApp: {
|
appleWebApp: {
|
||||||
capable: true,
|
capable: true,
|
||||||
statusBarStyle: 'default',
|
statusBarStyle: 'default',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user