-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
34 lines (31 loc) · 764 Bytes
/
Copy pathnext.config.ts
File metadata and controls
34 lines (31 loc) · 764 Bytes
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
import type { NextConfig } from "next";
import path from "path";
const isIsolatedBuild = process.env.ISOLATED_BUILD === "true";
const nextConfig: NextConfig = {
distDir: isIsolatedBuild ? ".next-build" : ".next",
outputFileTracingRoot: path.resolve(process.cwd()),
turbopack: {
root: process.cwd(),
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'sat.coilearn.com',
},
{
protocol: 'https',
hostname: 'thryftstore.com',
},
],
},
async rewrites() {
return [
{
source: '/__/auth/:path*',
destination: `https://${process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID}.firebaseapp.com/__/auth/:path*`,
},
];
},
};
export default nextConfig;