-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
30 lines (26 loc) · 807 Bytes
/
next.config.ts
File metadata and controls
30 lines (26 loc) · 807 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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
webpack: (config) => {
config.externals.push("pino-pretty", "lokijs", "encoding");
// Handle React Native dependencies that don't exist in web environment
config.resolve.fallback = {
...config.resolve.fallback,
"@react-native-async-storage/async-storage": false,
"react-native": false,
"react-native-fs": false,
"react-native-get-random-values": false,
"react-native-keychain": false,
};
return config;
},
eslint: {
ignoreDuringBuilds: true,
},
// Exclude demo folder from build
pageExtensions: ['ts', 'tsx', 'js', 'jsx'],
experimental: {
// Exclude the demo folder from TypeScript compilation
typedRoutes: false,
},
};
export default nextConfig;