Родитель
a8f5a87c9d
Коммит
4b15a711c4
|
@ -1,18 +0,0 @@
|
|||
// HOSTNAME=functional.test must be set to use this config.
|
||||
module.exports = {
|
||||
// Statics will be served by node.
|
||||
staticHost: '',
|
||||
// FIXME: sign-in isn't working.
|
||||
// fxaConfig: 'local',
|
||||
|
||||
enableClientConsole: true,
|
||||
apiStageHost: 'http://olympia.test',
|
||||
|
||||
CSP: false,
|
||||
|
||||
// This is needed to serve assets locally.
|
||||
enableNodeStatics: true,
|
||||
trackingEnabled: false,
|
||||
// Do not send client side errors to Sentry.
|
||||
publicSentryDsn: null,
|
||||
};
|
|
@ -0,0 +1,21 @@
|
|||
// For use on addons-server, or with the command `amo:ui-tests`.
|
||||
module.exports = {
|
||||
apiHost: 'http://olympia.test',
|
||||
proxyApiHost: 'http://olympia.test',
|
||||
proxyPort: 3000,
|
||||
proxyEnabled: true,
|
||||
|
||||
CSP: false,
|
||||
|
||||
// Setting this to false returns add-ons that are not compatible but means
|
||||
// developers can pull from a much larger dataset on the local/-dev/-stage
|
||||
// servers. Set this to true to only get compatible add-ons (this is what
|
||||
// happens in production) but get a lot fewer add-ons in search results.
|
||||
restrictSearchResultsToAppVersion: false,
|
||||
fxaConfig: 'default',
|
||||
trackingEnabled: false,
|
||||
loggingLevel: 'debug',
|
||||
enableNodeStatics: true,
|
||||
|
||||
enableAMInstallButton: true,
|
||||
};
|
|
@ -18,6 +18,7 @@
|
|||
"clean": "rimraf './dist/*!(.gitkeep)' './webpack-assets.json' './src/locale/**(!.gitkeep)'",
|
||||
"amo": "better-npm-run amo",
|
||||
"amo:dev": "better-npm-run amo:dev",
|
||||
"amo:ui-tests": "better-npm-run amo:ui-tests",
|
||||
"amo:no-proxy": "better-npm-run amo:no-proxy",
|
||||
"amo:stage": "better-npm-run amo:stage",
|
||||
"disco": "better-npm-run disco",
|
||||
|
@ -67,6 +68,13 @@
|
|||
"NODE_APP_INSTANCE": "amo"
|
||||
}
|
||||
},
|
||||
"amo:ui-tests": {
|
||||
"command": "better-npm-run start-dev-proxy",
|
||||
"env": {
|
||||
"NODE_APP_INSTANCE": "amo",
|
||||
"NODE_CONFIG_ENV": "ui-tests"
|
||||
}
|
||||
},
|
||||
"amo:no-proxy": {
|
||||
"command": "better-npm-run start-dev",
|
||||
"env": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче