Skip to content

Commit

Permalink
Merge pull request #31 from Code-Hex/fix/trailing
Browse files Browse the repository at this point in the history
add trailingSlash
  • Loading branch information
Code-Hex authored Aug 1, 2021
2 parents 85c5ece + e5d371d commit 191706b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const autoLinkHeadings = require('remark-autolink-headings');
const nextConfig = {
generateBuildId: () => nextBuildId({ dir: __dirname }),
exportPathMap: async function () {
const notes = []; // TODO(codehex): fix
const notes = ['hello.mdx', 'hello2.mdx']; // TODO(codehex): fix
const notePaths = notes.map((v) => '/note/' + v.replace(/\.mdx$/, ''));
let pages = {
'/': { page: '/' },
Expand All @@ -27,6 +27,7 @@ const nextConfig = {
});
return pages;
},
trailingSlash: true,
pageExtensions: ['ts', 'tsx', 'mdx'],
// https://nextjs.org/docs/basic-features/image-optimization
images: {
Expand Down

0 comments on commit 191706b

Please sign in to comment.