-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
31 lines (28 loc) · 943 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
// @generated: @expo/[email protected]
// Learn more: https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/guides/using-nextjs.md#withexpo
const { withExpo } = require("@expo/next-adapter");
const withFonts = require("next-fonts");
const withImages = require("next-images");
const withPlugins = require("next-compose-plugins");
const withTM = require("next-transpile-modules")([
"expo-next-react-navigation"
// you can add other modules that need traspiling here
]);
module.exports = withPlugins(
[withTM, withFonts, withImages, [withExpo, { projectRoot: __dirname }]],
{
// future: { webpack5: true }
// experimental: {
// async redirects() {
// return [
// // 308 permanent redirect
// {
// source: '/home',
// destination: '/',
// permanent: true, // permanent redirect
// },
// ];
// },
// },
}
);