Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export const metadata: Metadata = {
'Aframp',
],
generator: 'v0.app',
manifest: '/manifest.json',
appleWebApp: {
capable: true,
statusBarStyle: 'default',
title: 'Aframp',
},
}

export const viewport: Viewport = {
Expand Down
25 changes: 25 additions & 0 deletions app/manifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import type { MetadataRoute } from 'next'

export default function manifest(): MetadataRoute.Manifest {
return {
name: 'Aframp',
short_name: 'Aframp',
description: 'Africa\'s premier cNGN stablecoin payment platform',
start_url: '/',
display: 'standalone',
background_color: '#000000',
theme_color: '#10b981',
icons: [
{
src: '/icon-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/icon-512x512.png',
sizes: '512x512',
type: 'image/png',
},
],
}
}
11 changes: 10 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import withPWAInit from 'next-pwa'

const withPWA = withPWAInit({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development',
})

/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
Expand All @@ -10,4 +19,4 @@ const nextConfig = {
output: 'standalone',
}

export default nextConfig
export default withPWA(nextConfig)
Loading
Loading