Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
84f38f3a
Commit
84f38f3a
authored
Jul 12, 2021
by
Kim, Subin
Browse files
client/utils
parent
d79054b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/utils/baseUrl.js
0 → 100644
View file @
84f38f3a
import
clientConfig
from
'
./clientConfig
'
const
baseUrl
=
process
.
env
.
NODE_ENV
===
'
production
'
?
`http://localhost:3001/
${
clientConfig
.
serverRoot
}
`
:
`http://localhost:3000`
export
default
baseUrl
\ No newline at end of file
client/src/utils/clientConfig.js
0 → 100644
View file @
84f38f3a
const
config
=
{
env
:
process
.
env
.
NODE_ENV
===
'
production
'
?
'
production
'
:
'
development
'
,
serverRoot
:
'
/
'
,
loginUser
:
'
butterStd-user
'
,
}
export
default
config
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment