Skip to content

Commit feb2493

Browse files
committed
Fix collection of dot-directories like .well-known in frontend for funding-manifest-urls (Fixes #222)
1 parent 886c133 commit feb2493

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## 1.0.22 (unreleased)
22

3-
4-
- Nothing changed yet.
3+
- Fix collection of dot-directories like .well-known in frontend for funding-manifest-urls (Fixes #222) [fredvd]
54

65

76
## 1.0.21 (2026-01-19)

frontend/razzle.extend.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const plugins = (defaultPlugins) => {
2+
return defaultPlugins;
3+
};
4+
const modify = (config, { target, dev }, webpack) => {
5+
const themeConfigPath = `${__dirname}/src/theme/theme.config`;
6+
config.resolve.alias['../../theme.config$'] = themeConfigPath;
7+
config.resolve.alias['../../theme.config'] = themeConfigPath;
8+
9+
// Make sure files in public/.well-known are copied
10+
const copyPlugin = config.plugins.find(
11+
(plugin) => plugin.constructor.name === 'CopyPlugin',
12+
);
13+
if (copyPlugin !== undefined) {
14+
copyPlugin.patterns.push({
15+
...copyPlugin.patterns[0],
16+
from: copyPlugin.patterns[0].from.replace('/**/', '/.well-known/'),
17+
});
18+
}
19+
return config;
20+
};
21+
22+
module.exports = {
23+
plugins,
24+
modify,
25+
};

0 commit comments

Comments
 (0)