-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepository.global.php
48 lines (42 loc) · 1.7 KB
/
repository.global.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
declare(strict_types=1);
// phpcs:disable SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly
use Prismic\Cloner\Factory\RepositoryFactory;
return [
/**
* Stupid API Keys required for the migration API found at:
* https://prismic.io/docs/migration-api-technical-reference#limits
*/
'migrationApiKeys' => [
'cSaZlfkQlF9C6CEAM2Del6MNX9WonlV86HPbeEJL',
'pZCexCajUQ4jriYwIGSxA1drZrFxDyFf1S0D1K0P',
'Yc0mfrkGDw8gaaGKTrzwC3QUZDajv6k73DA99vWN',
'ySzSEbVMAb5S1oSCQfbVG4mbh9Cb8wlF7BCvKI0L',
'g2DA3EKWvx8uxVYcNFrmT5nJpon1Vi9V4XcOibJD',
'CCNIlI0Vz41J66oFwsHUXaZa6NYFIY6z7aDF62Bc',
],
'repositories' => [
$_ENV['SOURCE_REPO'] => [
'name' => $_ENV['SOURCE_REPO'],
'writeToken' => $_ENV['SOURCE_WRITE_TOKEN'],
'readToken' => $_ENV['SOURCE_READ_TOKEN'],
],
$_ENV['TARGET_REPO'] => [
'name' => $_ENV['TARGET_REPO'],
'writeToken' => $_ENV['TARGET_WRITE_TOKEN'],
'readToken' => $_ENV['TARGET_READ_TOKEN'],
/**
* If you are copying from a repo in say 'en-us' and need the target to be 'en-gb', you can supply a
* 'forceLanguage' option to override the language of the source document.
* Bear in mind this is not going to be very helpful for multi-language repos
*/
//'forceLanguage' => 'en-gb',
],
],
'dependencies' => [
'factories' => [
Prismic\Cloner\SourceRepository::class => [RepositoryFactory::class, $_ENV['SOURCE_REPO']],
Prismic\Cloner\TargetRepository::class => [RepositoryFactory::class, $_ENV['TARGET_REPO']],
],
],
];