Connect the website to the API

This commit is contained in:
2019-10-27 13:41:16 +01:00
parent ab791efe42
commit 32e8dfa4bb
8 changed files with 66 additions and 38 deletions

View File

@@ -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;