From b4a933add1cc05dda010e8c6495201e211070bb1 Mon Sep 17 00:00:00 2001 From: "Matt (IPv4) Cowley" Date: Fri, 19 Feb 2021 17:54:58 +0000 Subject: [PATCH] Disable index.html fallback in dev (#230) --- vue.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vue.config.js b/vue.config.js index 5288bd0..71f92a1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -34,6 +34,9 @@ module.exports = { outputDir: 'dist', filenameHashing: false, // Don't hash the output, so we can embed on the DigitalOcean Community productionSourceMap: false, + devServer: { + historyApiFallback: false, // Don't serve index.html for 404s in dev + }, configureWebpack: { node: false, // Disable Node.js polyfills (Buffer etc.) -- This will be default in Webpack 5 plugins: [