Skip to content

Commit f59971a

Browse files
committed
enable trailingSlash
1 parent 0bf7d52 commit f59971a

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

gatsby-config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
description: 'pyjun01 블로그',
77
siteUrl: 'https://pyjun01.github.io',
88
},
9-
trailingSlash: 'never',
9+
trailingSlash: 'always',
1010
plugins: [
1111
'gatsby-plugin-sitemap',
1212
'gatsby-plugin-react-helmet',
@@ -43,6 +43,5 @@ module.exports = {
4343
plugins: [`gatsby-remark-autolink-headers`],
4444
},
4545
},
46-
'gatsby-plugin-remove-trailing-slashes',
4746
],
4847
};

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build": "gatsby build",
2020
"serve": "gatsby serve",
2121
"clean": "gatsby clean",
22-
"deploy": "gatsby build --prefix-paths && gh-pages -d public"
22+
"deploy": "gatsby build && gh-pages -d public"
2323
},
2424
"dependencies": {
2525
"@mdx-js/mdx": "^1.6.22",
@@ -56,7 +56,6 @@
5656
"eslint-plugin-import": "^2.24.2",
5757
"eslint-plugin-prettier": "^4.0.0",
5858
"eslint-plugin-react": "^7.25.1",
59-
"gatsby-plugin-remove-trailing-slashes": "^4.19.0",
6059
"gh-pages": "^3.2.3",
6160
"prettier": "^2.4.0"
6261
}

src/components/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function List({ nodes }) {
4141
{nodes.map((node) => (
4242
<Item key={node.id}>
4343
<h2>
44-
<Link to={`/v/${node.slug}`}>{node.frontmatter.title}</Link>
44+
<Link to={`/v/${node.slug}/`}>{node.frontmatter.title}</Link>
4545
</h2>
4646
<p>
4747
{node.frontmatter.preview} - {node.frontmatter.date}

yarn.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6564,13 +6564,6 @@ gatsby-plugin-react-helmet@^5.15.0:
65646564
dependencies:
65656565
"@babel/runtime" "^7.15.4"
65666566

6567-
gatsby-plugin-remove-trailing-slashes@^4.19.0:
6568-
version "4.19.0"
6569-
resolved "https://registry.yarnpkg.com/gatsby-plugin-remove-trailing-slashes/-/gatsby-plugin-remove-trailing-slashes-4.19.0.tgz#a65f56b8e9270b85c5472a623caaf85e4e8b3202"
6570-
integrity sha512-3zyL+6pqQIeAvABi3PbtVi285n9CVCopzLZNiCLN81/xPiCggA1yyNaZVV3eS1ZbOVFlWCAFyEBRl6E6QeI2BQ==
6571-
dependencies:
6572-
"@babel/runtime" "^7.15.4"
6573-
65746567
gatsby-plugin-sharp@^4.13.0:
65756568
version "4.13.0"
65766569
resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-4.13.0.tgz#b5d9494cb9e5246bcca726181ea09afbe5699513"

0 commit comments

Comments
 (0)