Skip to content

Commit

Permalink
fix: viewportのwarning対応 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatehito authored Jan 2, 2024
1 parent b6877f3 commit b8923bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VersionOverlay } from '@willbooster/shared-lib-react';
import type { Metadata } from 'next';
import type { Metadata, Viewport } from 'next';
import React from 'react';

import { Providers } from '../components/organisms/Providers';
Expand All @@ -9,7 +9,11 @@ import type { LayoutComponent } from '../types';
export const metadata: Metadata = {
title: { absolute: APP_NAME, template: `%s | ${APP_NAME}` },
description: APP_DESCRIPTION,
viewport: { width: 'device-width', initialScale: 1 },
};

export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
};

const RootLayout: LayoutComponent = ({ children }) => {
Expand Down

0 comments on commit b8923bb

Please sign in to comment.