mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 06:24:52 +03:00
Update server proxy syntax for webpack-dev-server@v5
This commit is contained in:
parent
6949cfe496
commit
70cc9782cf
|
@ -6,13 +6,16 @@ module.exports = merge(commonConfig, {
|
||||||
devtool: 'inline-source-map',
|
devtool: 'inline-source-map',
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
proxy: {
|
proxy: [
|
||||||
{%- if cookiecutter.use_docker == 'n' %}
|
{
|
||||||
'/': 'http://0.0.0.0:8000',
|
context: ['/'],
|
||||||
{%- else %}
|
{%- if cookiecutter.use_docker == 'n' %}
|
||||||
'/': 'http://django:8000',
|
target: 'http://0.0.0.0:8000',
|
||||||
{%- endif %}
|
{%- else %}
|
||||||
},
|
target: 'http://django:8000',
|
||||||
|
{%- endif %}
|
||||||
|
},
|
||||||
|
],
|
||||||
client: {
|
client: {
|
||||||
overlay: {
|
overlay: {
|
||||||
errors: true,
|
errors: true,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user