Skip to content
Snippets Groups Projects
Commit edb1145c authored by Minseo Lee's avatar Minseo Lee
Browse files

feat: add production api url

parent c42741c0
No related branches found
No related tags found
No related merge requests found
......@@ -14,13 +14,15 @@ const RESPONSE_STATUS = Object.freeze({
type FetchMethod = typeof FETCH_METHOD[keyof typeof FETCH_METHOD];
const DEV_API_URL = 'http://localhost:8080';
const PROD_API_URL = '';
const PROD_API_URL = 'https://ajou-eats-api.seunglab.dev';
const DEV_SOCKET_URL = 'ws://localhost:8080';
const PROD_SOCKET_URL = '';
const PROD_SOCKET_URL = 'ws://ajou-eats-api.seunglab.dev';
const API_URL = process.env.NODE_ENV === 'production' ? PROD_API_URL : DEV_API_URL;
// const API_URL = PROD_API_URL;
const SOCKET_URL = process.env.NODE_ENV === 'production' ? PROD_SOCKET_URL : DEV_SOCKET_URL;
// const SOCKET_URL = PROD_SOCKET_URL;
/**
* @name fetchData
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment