Connect the website to the API
This commit is contained in:
@@ -24,7 +24,12 @@ const config: webpack.Configuration = {
|
||||
alias: {
|
||||
"@kredens": path.resolve(__dirname, "src/")
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
API_URL: JSON.stringify("http://localhost:3000/api/")
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user