-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
25 lines (23 loc) · 770 Bytes
/
app.config.js
File metadata and controls
25 lines (23 loc) · 770 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
const { withGradleProperties } = require('@expo/config-plugins');
module.exports = function appConfig({ config }) {
config = withGradleProperties(config, (c) => {
const existing = c.modResults.findIndex(
(item) => item.type === 'property' && item.key === 'org.gradle.jvmargs'
);
const value = '-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError';
if (existing >= 0) {
c.modResults[existing].value = value;
} else {
c.modResults.push({ type: 'property', key: 'org.gradle.jvmargs', value });
}
return c;
});
return {
...config,
extra: {
...config.extra,
supabaseUrl: process.env.EXPO_PUBLIC_SUPABASE_URL,
supabaseAnonKey: process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY,
},
};
};