Commit 04d81309 authored by Daeki Yoon's avatar Daeki Yoon
Browse files

homepage

parent 81cf8c01
......@@ -48,5 +48,5 @@
]
},
"proxy": "http://localhost:3030",
"homepage": "https://compmath.korea.ac.kr/app/rental"
"homepage": "."
}
......@@ -18,6 +18,8 @@ if (isProduction) {
root_url = '/app/rental'
}
console.log('isProductiion=', isProduction)
const CURRENT_WORKING_DIR = process.cwd()
const app = express()
......@@ -27,7 +29,7 @@ app.use(bodyParser.urlencoded({ extended: true }))
app.use(cors())
console.log('path=', path.join(CURRENT_WORKING_DIR, 'client', 'build'))
app.use('/', express.static(path.join(CURRENT_WORKING_DIR, 'client', 'build')))
app.use(path.join(root_url, '/'), express.static(path.join(CURRENT_WORKING_DIR, 'client', 'build')))
app.use(path.join(root_url, '/api/'), indexRouter);
app.use(path.join(root_url, '/api/users'), usersRouter, reservesRouter);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment