{isClientBundledValue ? `Public variable` : `Private variable`}
{isClientBundledValue
? `This variable will be bundled into the client side. If this is a private variable, do not use "NEXT_PUBLIC".`
: `This variable is private and will not be bundled client side, so you cannot access it from React components rendered client side`}
Secret Variable
This is a secret key. Keep it safe!
{varState.effectiveSource}
{varState.effectiveSource === '.env.local'
? `These variables are specific to this machine and are not committed`
: varState.effectiveSource === '.env.development'
? `These variables are only being used during development`
: varState.effectiveSource === '.env'
? `These variables are shared under all modes`
: `These variables are only used in production mode`}
Overridden in {varState.effectiveSource}
This variable was overridden by a variable in{' '}
{varState.effectiveSource}
Invalid Value
This variable has an invalid value. Drop down to view the
errors.
{(deprecated) => (
Deprecated
This variable is deprecated
Reason: {deprecated.reason}
{deprecated.alternative && (
Use instead:{' '}
{deprecated.alternative}
)}
)}
{varState.effectiveSource === 'MISSING'
? `The variable ${varState.key} is required but missing`
: `The value for ${varState.key} is invalid`}
0}>
0}>
{
let data = '';
const groups = getGroups(appState, () => true);
groups.forEach((group) => {
data += `# ${group.category}\n`;
group.variables.forEach((variable) => {
data += `${variable.key}=${variable.effectiveValue}\n`;
});
data += '\n';
});
const promise = copyToClipboard(data);
toast.promise(promise, {
loading: 'Copying environment variables...',
success: 'Environment variables copied to clipboard.',
error:
'Failed to copy environment variables to clipboard',
});
}}
>
Copy env file to clipboard
}
/>
Copy environment variables to clipboard. You can place it in your
hosting provider to set up the full environment.