An Azure service that provides a general-purpose, serverless container platform.
Yes, there is a way to disable this behavior. You can do this by setting the following environment variable in your Azure Container App:
This will tell the Azure Container App to not decode the URL before reaching the docker container.
Here are the steps on how to set this environment variable:
- Go to the Azure Portal and navigate to your Azure Container App.
- Click on the Settings tab.
- In the Environment variables section, click on the Add button.
- In the Name field, enter AZURE_CONTAINER_APP_INGRESS_DECODE_URL.
- In the Value field, enter false.
- Click on the Save button.
Once you have set this environment variable, the Azure Container App will no longer decode the URL before reaching the docker container. This will ensure that NPM can correctly request packages with slashes in their names.
Here are some additional details about this behavior:
- The Azure Container App ingress controller decodes URLs by default. This is done to make it easier for users to access their applications.
- However, this can sometimes cause problems with applications that rely on encoded URLs. For example, NPM relies on encoded URLs when requesting packages with slashes in their names.
- By setting the
AZURE_CONTAINER_APP_INGRESS_DECODE_URLenvironment variable tofalse, you can disable this behavior and ensure that NPM can correctly request packages with slashes in their names.
AZURE_CONTAINER_APP_INGRESS_DECODE_URL=false