Skip to content

Commit

Permalink
feat: support pwa (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
okisdev authored Apr 14, 2024
1 parent 7b213f4 commit 40e1de7
Show file tree
Hide file tree
Showing 5 changed files with 2,408 additions and 325 deletions.
8 changes: 8 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ const onest = Onest({ subsets: ['latin'] });
export const metadata: Metadata = {
title: 'Chat Chat',
description: 'Chat Chat - Unlock next-level conversations with AI',

manifest: '/manifest.json',

appleWebApp: {
capable: true,
statusBarStyle: 'default',
title: 'Chat Chat',
},
};

export const viewport: Viewport = {
Expand Down
7 changes: 6 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import withPWAInit from '@ducanh2912/next-pwa';
import createNextIntlPlugin from 'next-intl/plugin';

const withNextIntl = createNextIntlPlugin();

const withPWA = withPWAInit({
dest: 'public',
});

/** @type {import('next').NextConfig} */
const nextConfig = {};

export default withNextIntl(nextConfig);
export default withPWA(withNextIntl(nextConfig));
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"@ai-sdk/google": "^0.0.0",
"@ai-sdk/openai": "^0.0.0",
"@anthropic-ai/sdk": "^0.18.0",
"@auth/drizzle-adapter": "^0.8.2",
"@aws-sdk/client-bedrock-runtime": "^3.549.0",
"@azure/openai": "^1.0.0-beta.12",
"@ducanh2912/next-pwa": "^10.2.6",
"@google/generative-ai": "^0.3.1",
"@huggingface/agents": "^0.0.5",
"@huggingface/hub": "^0.14.7",
Expand All @@ -37,8 +37,6 @@
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"ai": "^3.0.22",
"bcrypt-ts": "^5.0.2",
"cheerio": "^1.0.0-rc.12",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cohere-ai": "^7.9.3",
Expand Down Expand Up @@ -80,7 +78,8 @@
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.13",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.4"
"typescript": "^5.4.4",
"webpack": "^5.91.0"
},
"packageManager": "pnpm@8.15.7"
}
Loading

0 comments on commit 40e1de7

Please sign in to comment.