-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
44 lines (39 loc) · 1.34 KB
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
return [
{
source: '/api/(dashboard)/(routes)/bing/page.tsx',
destination: '/app/api/internet/route.ts',
},
];
},
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'googleusercontent.com' },
{ protocol: 'https', hostname: 'oaidalleapiprodscus.blob.core.windows.net' },
{ protocol: 'https', hostname: 'cdn.openai.com' },
{ protocol: 'https', hostname: 'images.unsplash.com' },
{ protocol: 'https', hostname: 'assets.aceternity.com' },
{ protocol: 'https', hostname: 'lh3.googleusercontent.com' },
]
},
}
module.exports = {
exportPathMap: async function (
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
'/': { page: '/' },
'/about-us': { page: '/about-us' },
'/privacy-policy': { page: '/privacy-policyt', query: { title: 'privacy-policy' } },
'/feedback': { page: '/feedback', query: { title: 'feedback' } },
'/help': { page: '/help', query: { title: 'help' } },
'/join-us': { page: '/join-us', query: { title: 'join us' } },
'/refund': { page: '/refund', query: { title: 'refund' } },
'/setting': { page: '/setting', query: { title: 'setting' } },
}
},
}
module.exports = nextConfig;