mirror of
https://github.com/strapi/strapi.git
synced 2025-11-11 07:39:16 +00:00
Support STRAPI_UUID_PREFIX env var (#6797)
Signed-off-by: Aurélien Georget <aurelsicoko@gmail.com>
This commit is contained in:
parent
fef24faf63
commit
aad7f486d2
@ -23,10 +23,7 @@ module.exports = (projectDirectory, cliArguments) => {
|
|||||||
|
|
||||||
const rootPath = resolve(projectDirectory);
|
const rootPath = resolve(projectDirectory);
|
||||||
|
|
||||||
const tmpPath = join(
|
const tmpPath = join(os.tmpdir(), `strapi${crypto.randomBytes(6).toString('hex')}`);
|
||||||
os.tmpdir(),
|
|
||||||
`strapi${crypto.randomBytes(6).toString('hex')}`
|
|
||||||
);
|
|
||||||
|
|
||||||
const useNpm = cliArguments.useNpm !== undefined;
|
const useNpm = cliArguments.useNpm !== undefined;
|
||||||
|
|
||||||
@ -40,7 +37,7 @@ module.exports = (projectDirectory, cliArguments) => {
|
|||||||
debug: cliArguments.debug !== undefined,
|
debug: cliArguments.debug !== undefined,
|
||||||
quick: cliArguments.quickstart !== undefined,
|
quick: cliArguments.quickstart !== undefined,
|
||||||
docker: process.env.DOCKER === 'true',
|
docker: process.env.DOCKER === 'true',
|
||||||
uuid: uuid(),
|
uuid: (process.env.STRAPI_UUID_PREFIX || '') + uuid(),
|
||||||
deviceId: machineIdSync(),
|
deviceId: machineIdSync(),
|
||||||
tmpPath,
|
tmpPath,
|
||||||
// use yarn if available and --use-npm isn't true
|
// use yarn if available and --use-npm isn't true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user