-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
34 lines (30 loc) · 1.01 KB
/
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
// @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 withImages = require('next-images')
const withFonts = require('next-fonts')
const withTM = require('next-transpile-modules')
require('dotenv').config()
module.exports = withExpo(
withFonts(
withImages({
projectRoot: __dirname,
webpack: (config, { defaultLoaders }) => {
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native-maps$': 'react-native-web-maps'
}
return config
},
publicRuntimeConfig: {
GOOGLE_MAP_API_KEY: process.env.GOOGLE_MAP_API_KEY
},
env: {
GOOGLE_MAP_API_KEY: process.env.GOOGLE_MAP_API_KEY
}
})
)
)
/** 'react-native-maps$': 'react-native-web-maps',
'react-native-web/dist/exports/ColorPropType':
'react-native-web/dist/index.js' */