mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
fix: move search v1 endpoint as experimental (#1850)
the current one has not auth implemented, to avoid the lack of fallback to the original one now is required to be used it by default until the v1 is on shape production ready.
This commit is contained in:
parent
c0afcadce4
commit
0bfdeaa2e4
@ -78,6 +78,8 @@ logs:
|
||||
#experiments:
|
||||
# # support for npm token command
|
||||
# token: false
|
||||
# # support for the new v1 search endpoint, functional by incomplete read more on ticket 1732
|
||||
# search: false
|
||||
|
||||
# This affect the web and api (not developed yet)
|
||||
#i18n:
|
||||
|
@ -77,6 +77,8 @@ logs:
|
||||
#experiments:
|
||||
# # support for npm token command
|
||||
# token: false
|
||||
# # support for the new v1 search endpoint, functional by incomplete read more on ticket 1732
|
||||
# search: false
|
||||
|
||||
# This affect the web and api (not developed yet)
|
||||
#i18n:
|
||||
|
@ -55,7 +55,9 @@ export default function(config: Config, auth: IAuth, storage: IStorageHandler) {
|
||||
ping(app);
|
||||
stars(app, storage);
|
||||
|
||||
v1Search(app, auth, storage)
|
||||
if (_.get(config, 'experiments.search') === true) {
|
||||
v1Search(app, auth, storage)
|
||||
}
|
||||
|
||||
if (_.get(config, 'experiments.token') === true) {
|
||||
token(app, auth, storage, config);
|
||||
|
Loading…
Reference in New Issue
Block a user