mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +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 tmpPath = join(
|
||||
os.tmpdir(),
|
||||
`strapi${crypto.randomBytes(6).toString('hex')}`
|
||||
);
|
||||
const tmpPath = join(os.tmpdir(), `strapi${crypto.randomBytes(6).toString('hex')}`);
|
||||
|
||||
const useNpm = cliArguments.useNpm !== undefined;
|
||||
|
||||
@ -40,7 +37,7 @@ module.exports = (projectDirectory, cliArguments) => {
|
||||
debug: cliArguments.debug !== undefined,
|
||||
quick: cliArguments.quickstart !== undefined,
|
||||
docker: process.env.DOCKER === 'true',
|
||||
uuid: uuid(),
|
||||
uuid: (process.env.STRAPI_UUID_PREFIX || '') + uuid(),
|
||||
deviceId: machineIdSync(),
|
||||
tmpPath,
|
||||
// use yarn if available and --use-npm isn't true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user