Skip to content

Commit

Permalink
fix: 환경변수 처리 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
EunjaeJo committed Jun 10, 2024
1 parent 332659c commit a0d5c0b
Show file tree
Hide file tree
Showing 7 changed files with 6,339 additions and 6,153 deletions.
1 change: 1 addition & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import App from './src/App';
import { GestureHandlerRootView } from 'react-native-gesture-handler'
export default App;
31 changes: 18 additions & 13 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module:react-native-dotenv',
{
moduleName: '@env',
path: '.env',
safe: false,
allowUndefined: true,
},
module.exports = function (api) {
api.cache(true);
return {
presets: ["babel-preset-expo"],
plugins: [
[
"module:react-native-dotenv",
{
moduleName: "@env",
path: ".env",
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: true,
},
],
],
],
};
};
};
8 changes: 8 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare module '@env' {
export const UNIV_NOTICE_URL: string;
export const EXTERN_NOTICE_URL: string;
export const RECOMMENDED_URL: string;
export const MEMBER_URL: string;
export const SPRING_GATEWAY_URL: string;
export const PORTFOLIO_URL: string;
}
19 changes: 0 additions & 19 deletions metro.config.js

This file was deleted.

Loading

0 comments on commit a0d5c0b

Please sign in to comment.