Skip to content

Commit df7aa60

Browse files
committed
i hope the problem of pwa has been fixed now
1 parent bc6bc94 commit df7aa60

5 files changed

Lines changed: 30 additions & 41 deletions

File tree

next.config.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
import withPWA from 'next-pwa';
2-
31
const nextConfig = {
42
reactStrictMode: true,
53
eslint: {
64
ignoreDuringBuilds: false,
75
},
8-
basePath: '/gecian_hub',
9-
assetPrefix: '/gecian_hub/',
10-
};
116

12-
export default withPWA({
13-
dest: 'public',
14-
register: true,
15-
skipWaiting: true,
16-
disable: process.env.NODE_ENV === 'development',
17-
cacheStartUrl: true,
18-
dynamicStartUrl: false,
19-
})(nextConfig);
7+
};

public/manifest.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

public/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/layout.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { Metadata } from 'next';
21
import BottomNavBar from '@/components/bottemNavbar';
32
import TopNavBar from '@/components/topNavbar';
43
import { Geist, Geist_Mono } from 'next/font/google';
@@ -14,10 +13,7 @@ const geistMono = Geist_Mono({
1413
subsets: ['latin'],
1514
});
1615

17-
export const metadata: Metadata = {
18-
title: 'Student App',
19-
description: 'An App For GEC Students',
20-
};
16+
2117

2218
export default function RootLayout({
2319
children,
@@ -27,7 +23,7 @@ export default function RootLayout({
2723
return (
2824
<html lang="en">
2925
<head>
30-
<link rel="manifest" href="/manifest.json" />
26+
{/* <link rel="manifest" href="/manifest.ts" /> */}
3127
</head>
3228
<body
3329
className={`${geistSans.variable} ${geistMono.variable} antialiased`}

src/app/manifest.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// app/manifest.ts
2+
import type { MetadataRoute } from 'next';
3+
4+
export default function manifest(): MetadataRoute.Manifest {
5+
return {
6+
name: 'Gecian Hub',
7+
short_name: 'Gecian',
8+
description: 'An app for GEC Palakkad students',
9+
start_url: '/',
10+
display: 'standalone',
11+
background_color: '#ffffff',
12+
theme_color: '#000000',
13+
icons: [
14+
{
15+
src: '@/public/icons/INVENTO.jpg',
16+
sizes: '192x192',
17+
type: 'image/jpeg',
18+
},
19+
{
20+
src: '@/public/icons/INVENTO.jpg',
21+
sizes: '512x512',
22+
type: 'image/jpeg',
23+
},
24+
],
25+
};
26+
}

0 commit comments

Comments
 (0)