Skip to content

Commit 325b0ba

Browse files
author
Anthony Bailey
committed
Merge branch 'prefix-all-locales' into l10-preview
2 parents 592a4a2 + 74bd357 commit 325b0ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/adapter-patch-prerendered.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export default function (adapter) {
1111
/**
1212
* @type {import('../../project.inlang/settings.json')}
1313
*/
14-
const settings = JSON.parse(fs.readFileSync('./project.inlang/settings.json', 'utf-8'))
15-
builder.prerendered.paths = builder.prerendered.paths.filter((path) => {
16-
for (const locale of settings.locales) {
17-
if (path.startsWith('/' + locale)) return true
18-
}
19-
})
14+
//const settings = JSON.parse(fs.readFileSync('./project.inlang/settings.json', 'utf-8'))
15+
//builder.prerendered.paths = builder.prerendered.paths.filter((path) => {
16+
// for (const locale of settings.locales) {
17+
// if (path.startsWith('/' + locale)) return true
18+
// }
19+
//})
2020
adapter.adapt(builder)
2121
}
2222
}

0 commit comments

Comments
 (0)