connect-history-api-fallback
connect-history-api-fallback copied to clipboard
static/js notfound
app.use(express.static(path.resolve(__dirname, config.outputDir))); app.use(express.static(path.resolve(__dirname, './../files'))); app.use(history({
}));
app.use(express.static(path.resolve(__dirname, config.outputDir))); app.use(express.static(path.resolve(__dirname, './../files')));
when i set this. it found static/js/xxx.js not found
This line app.use(history());
should come before this line app.use(express.static(path.join(__dirname, '..', 'client', 'dist')));