Skip to content

Commit

Permalink
fix(nextjs manifest): updated the manifest path as per the new version
Browse files Browse the repository at this point in the history
  • Loading branch information
easen-amp committed Apr 20, 2020
1 parent 93d1fd7 commit e6fb525
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const env = {
};

const manifest = {
output: './static/manifest/',
name: 'Amplience Product Blog',
short_name: 'Amplience',
theme_color: '#29333f',
Expand Down
6 changes: 3 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import App, { Container } from 'next/app';
import App from 'next/app';
import React from 'react';
import { DefaultSeo } from 'next-seo';

Expand All @@ -9,11 +9,11 @@ export class CustomApp extends App {
render() {
const { Component, pageProps } = this.props;
return (
<Container>
<>
<DefaultSeo {...SEO} />
<RouteChangeLoader />
<Component {...pageProps} />
</Container>
</>
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class CustomDocument extends Document {
return (
<Html lang="en">
<Head>
<Manifest />
<Manifest href={"/static/manifest/manifest.json"} />
<link rel="icon" href="/static/favicon.ico"></link>
<link rel="apple-touch-icon" href="/static/icons/icon-192x192.png"></link>
<link rel="preconnect" href="https://www.google-analytics.com"></link>
Expand Down

0 comments on commit e6fb525

Please sign in to comment.