-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
32 lines (31 loc) · 1 KB
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
// port: '',
},
],
},
// Needed for `signInWithRedirect` and custom `authDomain` configuration. See https://firebase.google.com/docs/auth/web/redirect-best-practices#proxy-requests
// If you don't plan to use `signInWithRedirect` or custom `authDomain`, you can safely remove `rewrites` config.
async rewrites() {
return [
{
source: "/__/auth",
destination: `https://${process.env.FIREBASE_PROJECT_ID}.firebaseapp.com/__/auth`,
},
{
source: "/__/auth/:path*",
destination: `https://${process.env.FIREBASE_PROJECT_ID}.firebaseapp.com/__/auth/:path*`,
},
{
source: "/__/firebase/init.json",
destination: `https://${process.env.FIREBASE_PROJECT_ID}.firebaseapp.com/__/firebase/init.json`,
},
];
},
};
export default nextConfig;