Skip to content

Instantly share code, notes, and snippets.

View Dirk94's full-sized avatar

Dirk Hoekstra Dirk94

View GitHub Profile
module.exports = {
devServer: {
// This will forward any request that does not match a static file to localhost:3000
proxy: 'http://localhost:3000'
}
}
async mounted() {
// Use a relative path to call the API now since our request is proxied.
const response = await axios.get("/quote")
this.quote = response.data.quote;
}