-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnext.config.js
36 lines (34 loc) · 994 Bytes
/
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
const { withExpo } = require('@expo/next-adapter')
/** @type {import('next').NextConfig} */
const nextConfig = {
i18n: {
locales: ['en'],
defaultLocale: 'en'
},
typescript: {
// TODO: Warning: This allows production builds to successfully complete even if your project has TypeScript errors
ignoreBuildErrors: true
},
reactStrictMode: true,
swcMinify: true,
transpilePackages: [
'react-native',
'expo',
// Add more React Native / Expo packages here...
'react-native-elements',
'react-native-safe-area-context',
'react-native-vector-icons'
],
experimental: {
forceSwcTransforms: true
}
// For font support:
// webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// config.module.rules.push({
// test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
// loader: 'file-loader?name=assets/[name].[hash].[ext]'
// })
// return config
// }
}
module.exports = withExpo(nextConfig)