forked from react-native-community/directory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
30 lines (29 loc) · 818 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
const {withExpo} = require('@expo/next-adapter');
const withImages = require('next-images');
const withFonts = require('next-fonts');
const withPlugins = require('next-compose-plugins');
const withTM = require('next-transpile-modules')(['react-native-web']);
module.exports = withPlugins(
[withTM, [withExpo, { projectRoot: __dirname }], withImages, withFonts],
{
webpack5: true,
productionBrowserSourceMaps: true,
eslint: {
ignoreDuringBuilds: true,
},
images: {
disableStaticImages: true,
},
async headers() {
return [
{
source: '/api/libraries',
headers: [
{key: 'Access-Control-Allow-Origin', value: '*'},
{key: 'Access-Control-Allow-Methods', value: 'GET,HEAD'},
],
},
];
},
}
);