Commit 12f70a45 authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

웹팩 개발서버 프락시 설정

parent a4a864f8
...@@ -6,5 +6,14 @@ const common = require("./webpack.common.js"); ...@@ -6,5 +6,14 @@ const common = require("./webpack.common.js");
module.exports = merge(common, { module.exports = merge(common, {
mode: "development", mode: "development",
devtool: "eval-cheap-module-source-map", devtool: "eval-cheap-module-source-map",
devServer: { historyApiFallback: true }, devServer: {
proxy: [
{
context: ["/api"],
target: "http://localhost:3000",
changeOrigin: true,
},
],
historyApiFallback: true,
},
}); });
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