Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 3c30456

Browse files
committed
fix export issue
1 parent a1656ea commit 3c30456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ module.exports = {
434434
const chapters = unit.chapters;
435435
for (const chapter of chapters) {
436436
const chapterSlug = chapter.name.replace(/\s/gi, '-');
437-
const route = `learn/${subject.subjectId}/${chapterSlug}`;
437+
const route = `/learn/${subject.subjectId}/${chapterSlug}`;
438438
routes[route] = {
439439
page: '/learn/subject',
440440
query: {

0 commit comments

Comments
 (0)