Skip to content

Commit

Permalink
fix prember urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Apr 29, 2022
1 parent 63311a3 commit e0d7986
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ module.exports = {
},

urlsForPrember() {
let appPrefix = join(this.project.configPath(), '../..');
const rfcs = readdirSync(join(appPrefix, 'text')).map((file) => file.replace(/\.md$/, ''));
const rfcs = readdirSync(join(this.getDataDirectory(), 'text'))
.map((file) => file.replace(/\.md$/, ''))
.map(file => `/id/${file}`);

return ['/', ...rfcs];
},
Expand Down

0 comments on commit e0d7986

Please sign in to comment.