Skip to content

Commit a27fd6e

Browse files
Add next-pwa
1 parent fae473b commit a27fd6e

File tree

4 files changed

+3620
-165
lines changed

4 files changed

+3620
-165
lines changed

app/layout.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ const emberly = localFont({ src: "../assets/Emberly-Regular.otf" });
1010
import logo from "@/assets/logo.svg";
1111
import Image from "next/image";
1212
import Link from "next/link";
13-
import { signIn, signOut } from "next-auth/react";
1413
import { Footer } from "./Footer";
1514

1615
export const metadata: Metadata = {
17-
title: "Panini",
16+
title: "Dr. Panini",
1817
description: "Tracking paninis - by TKO-äly",
18+
other: {
19+
"mobile-web-app-capable": "yes",
20+
"apple-mobile-web-app-capable": "yes",
21+
"application-name": "Dr. Panini",
22+
},
1923
};
2024

2125
export default async function RootLayout({

next.config.mjs

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
import withPWA from "next-pwa";
2+
13
/** @type {import('next').NextConfig} */
24
const nextConfig = {
35
output: "standalone",
46
experimental: {
5-
serverActions: true,
67
instrumentationHook: true,
78
},
89
};
910

10-
export default nextConfig;
11+
/** @type {import('next-pwa').PWAConfig} */
12+
const pwaConfig = {
13+
dest: "public",
14+
disable: process.env.NODE_ENV === "development",
15+
cacheStartUrl: false,
16+
dynamicStartUrl: false,
17+
};
18+
19+
export default withPWA(pwaConfig)(nextConfig);

0 commit comments

Comments
 (0)