You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the ${cid} placeholder in the IPFS_PUBLIC_GATEWAY environment variable, developers must be careful to use single quotes instead of double quotes when specifying the value, otherwise in some contexts the ${cid} will be interpreted as the value of the cid environment value, resulting in an invalid value being passed to the system.
For example, if I set:
IPFS_PUBLIC_GATEWAY="https://ipfs.io/ipfs/${cid}"
The value of the env variable after the process is started will be https://ipfs.io/ipfs/ and not https://ipfs.io/ipfs/${cid} anymore.
Requirements
Use {cid} instead of ${cid} as a placeholder for the CID in the definition of the IPFS_PUBLIC_GATEWAY environment variable.
Definition of done
Developers don't need to worry about using single or double quotes when defining the values of the environment variables in the env configuration files.
The text was updated successfully, but these errors were encountered:
Neurone
changed the title
Use {cid} as a placeholder for IPFS_PUBLIC_GATEWAY environment variable instead of ${cid}
Use {cid} as a placeholder for IPFS_PUBLIC_GATEWAY environment variable instead of ${cid}Nov 27, 2024
Problem description
When using the
${cid}
placeholder in theIPFS_PUBLIC_GATEWAY
environment variable, developers must be careful to use single quotes instead of double quotes when specifying the value, otherwise in some contexts the${cid}
will be interpreted as the value of thecid
environment value, resulting in an invalid value being passed to the system.For example, if I set:
IPFS_PUBLIC_GATEWAY="https://ipfs.io/ipfs/${cid}"
The value of the env variable after the process is started will be
https://ipfs.io/ipfs/
and nothttps://ipfs.io/ipfs/${cid}
anymore.Requirements
Use
{cid}
instead of${cid}
as a placeholder for the CID in the definition of theIPFS_PUBLIC_GATEWAY
environment variable.Definition of done
Developers don't need to worry about using single or double quotes when defining the values of the environment variables in the env configuration files.
The text was updated successfully, but these errors were encountered: