Skip to content

Commit

Permalink
Merge pull request #276 from hyper63/twilson63/update-core-update-con…
Browse files Browse the repository at this point in the history
…fig-275

feat (core): update config schema check to include crawler port (#275)
  • Loading branch information
twilson63 authored Jul 25, 2021
2 parents 9b34477 + 00916d2 commit 4199cb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/utils/config-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ const plugin = z.object({
const Schema = z.object({
app: F,
adapters: z.object({
port: z.enum(["data", "cache", "search", "storage", "queue", "hooks"]),
port: z.enum([
"data",
"cache",
"search",
"storage",
"queue",
"hooks",
"crawler",
]),
plugins: plugin.array(),
}).array(),
middleware: F.array().optional(),
Expand Down
1 change: 1 addition & 0 deletions packages/core/utils/config-schema_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ test("validate schema", () => {
app: noop,
adapters: [
{ port: "queue", plugins: [plugin()] },
{ port: "crawler", plugins: [plugin()] },
],
});
assertEquals(true, true);
Expand Down

0 comments on commit 4199cb4

Please sign in to comment.