-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore-fe: FE dev/prod 코드 빌드 관련 webpack 설정 변경 (#236)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Seongjin Hong <[email protected]> Co-authored-by: Seongjin Hong <[email protected]>
- Loading branch information
1 parent
004aaa0
commit 8826f31
Showing
8 changed files
with
74 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const BASE_URL = process.env.REACT_APP_CRURU_API_URL; | ||
import { BASE_URL } from '@constants/constants'; | ||
|
||
export const PROCESSES = `${BASE_URL}/v1/processes`; | ||
export const PROCESSES = `${BASE_URL}/processes`; | ||
|
||
export const APPLICANTS = `${BASE_URL}/v1/applicants`; | ||
export const APPLICANTS = `${BASE_URL}/applicants`; | ||
|
||
export const EVALUATIONS = `${BASE_URL}/v1/evaluations`; | ||
export const EVALUATIONS = `${BASE_URL}/evaluations`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
declare namespace NodeJS { | ||
interface ProcessEnv { | ||
REACT_APP_CRURU_API_URL: string; | ||
API_URL: string; | ||
API_VERSION: string; | ||
SENTRY_DSN: string; | ||
SENTRY_AUTH_TOKEN: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
const { merge } = require('webpack-merge'); | ||
const common = require('./webpack.config.js'); | ||
const Dotenv = require('dotenv-webpack'); | ||
const webpack = require('webpack'); | ||
|
||
module.exports = merge(common, { | ||
mode: 'production', | ||
devtool: 'hidden-source-map', | ||
plugins: [ | ||
new Dotenv({ | ||
path: './.env.production', | ||
systemvars: true, | ||
safe: true, | ||
new webpack.DefinePlugin({ | ||
'process.env': JSON.stringify(process.env), | ||
}), | ||
], | ||
}); |