feat: Add icons and webmanifest to next server.

This commit is contained in:
Sam Tolmay 2021-11-29 13:43:50 +02:00
parent 270c92e16a
commit 6a254ed882
No known key found for this signature in database
GPG Key ID: D004126FCD1A6DF0
4 changed files with 41 additions and 0 deletions

View File

@ -28,4 +28,7 @@ module.exports = withLess({
// experimental: {
// concurrentFeatures: true,
// },
eslint: {
ignoreDuringBuilds: true,
},
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 B

View File

@ -0,0 +1,38 @@
/*
Copyright 2020-2021 Lowdefy, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
class LowdefyDocument extends Document {
render() {
return (
<Html>
<Head>
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default LowdefyDocument;