mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Fix webpack-dev-server setup
This commit is contained in:
@@ -24,4 +24,4 @@ def render_index():
|
||||
@routes.route(org_scoped_rule('/<path:path>'))
|
||||
@routes.route(org_scoped_rule('/'))
|
||||
def index(**kwargs):
|
||||
return render_index()
|
||||
return render_index()
|
||||
|
||||
@@ -25,4 +25,4 @@ def configure_webpack(app):
|
||||
def webpack_assets():
|
||||
return {
|
||||
'asset_url': get_asset,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,8 +143,11 @@ const config = {
|
||||
},
|
||||
devServer: {
|
||||
inline: true,
|
||||
historyApiFallback: true,
|
||||
historyApiFallback: {rewrites: [
|
||||
{ from: /./, to: '/static/index.html' }
|
||||
]},
|
||||
contentBase: path.join(__dirname, 'client', 'app'),
|
||||
publicPath: '/static/',
|
||||
proxy: [{
|
||||
context: [
|
||||
'/login', '/invite', '/setup', '/images', '/js', '/styles',
|
||||
|
||||
Reference in New Issue
Block a user