We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ade9379 commit caaab11Copy full SHA for caaab11
source/plugin.ts
@@ -82,15 +82,15 @@ export function normaliseConfig(
82
83
const databases = [
84
...(config.databases ?? []),
85
- ...(process.env['GATSBY_NOTION_DATABASES']?.split(/, +/) ?? []),
+ ...(process.env['GATSBY_NOTION_DATABASES']?.split(/, */) ?? []),
86
].filter(
87
// no empty id
88
(id) => !!id,
89
);
90
91
const pages = [
92
...(config.pages ?? []),
93
- ...(process.env['GATSBY_NOTION_PAGES']?.split(/, +/) ?? []),
+ ...(process.env['GATSBY_NOTION_PAGES']?.split(/, */) ?? []),
94
95
96
0 commit comments