Skip to content

Commit 70a51ec

Browse files
Merge pull request #21 from elastic/npm_audit_patch
chore: Update to Node 20.19.3
2 parents 482f7cb + 86649e0 commit 70a51ec

17 files changed

Lines changed: 4186 additions & 8975 deletions

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616

1717
steps:
1818
- name: Checkout 🛎️
19-
uses: actions/checkout@v2.3.1
20-
- name: Use Node.js 18.16.1
21-
uses: actions/setup-node@v1
19+
uses: actions/checkout@v6
20+
- name: Use Node.js 20.19.3
21+
uses: actions/setup-node@v6
2222
with:
23-
node-version: '18.16.1'
23+
node-version: '20.19.3'
2424

2525
- name: Installing my packages
2626
run: npm ci

next.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,14 @@ const nextConfig = {
9292
};
9393
}
9494

95-
// Copy theme CSS files into `public`
96-
config.plugins.push(
97-
new CopyWebpackPlugin({ patterns: themeConfig.copyConfig }),
95+
// Copy theme CSS files into `public` only if they exist
96+
if (Array.isArray(themeConfig.copyConfig) && themeConfig.copyConfig.length > 0) {
97+
config.plugins.push(
98+
new CopyWebpackPlugin({ patterns: themeConfig.copyConfig })
99+
);
100+
}
98101

102+
config.plugins.push(
99103
// Moment ships with a large number of locales. Exclude them, leaving
100104
// just the default English locale. If you need other locales, see:
101105
// https://create-react-app.dev/docs/troubleshooting/#momentjs-locales-are-missing

0 commit comments

Comments
 (0)