Skip to content

Commit

Permalink
Update redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Apr 7, 2024
1 parent 3ac9d82 commit acef3e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 71 deletions.
73 changes: 4 additions & 69 deletions config/redirects.mjs
Original file line number Diff line number Diff line change
@@ -1,49 +1,12 @@
/** @type {import("next").Redirect[]} */
export const redirects = [
{
destination: "/blog/my-experience-changing-my-github-username",
permanent: true,
source: "/username",
destination: "https://termicons.mskelton.dev",
source: "/termicons",
},
{
destination: "/blog/the-dangers-of-shallow-rendering",
permanent: true,
source: "/shallow",
},
{
destination: "/blog/automated-npm-publishing-using-github-actions",
permanent: true,
source: "/npm-publishing",
},
{
destination: "/blog/using-yarn-constraints",
permanent: true,
source: "/constraints",
},
{
destination: "/blog/conquering-derived-state",
permanent: true,
source: "/derived-state",
},
{
destination: "/blog/auto-formatting-code-using-prettier-and-github-actions",
permanent: true,
source: "/prettier",
},
{
destination: "/blog/automating-npm-package-releases",
permanent: true,
source: "/semantic-release",
},
{
destination: "/blog/my-journey-to-become-a-staff-software-engineer",
permanent: true,
source: "/staff-engineer",
},
{
destination: "/blog/stop-using-semicolons",
permanent: true,
source: "/semicolons",
destination: "https://ratchet.mskelton.dev",
source: "/ratchet",
},
]

Expand All @@ -53,32 +16,4 @@ export const rewrites = [
destination: "/mark-skelton.pdf",
source: "/resume.pdf",
},
{
destination:
"https://raw.githubusercontent.com/mskelton/ratchet/main/transform.ts",
source: "/ratchet.ts",
},
{
destination: "https://ratchet-mskelton.vercel.app/:asset*",
source: "/ratchet/:asset*",
},
{
destination:
"https://raw.githubusercontent.com/mskelton/yarn-plugin-outdated/:version*/bundles/@yarnpkg/plugin-outdated.js",
source: "/yarn-outdated/:version*",
},
{
destination: "https://mskelton.github.io/termicons/:asset*",
source: "/termicons/:asset*",
},
{
destination:
"https://raw.githubusercontent.com/mskelton/:repo/main/scripts/install.sh",
source: "/:repo/install",
},
{
destination:
"https://raw.githubusercontent.com/mskelton/dprint-config/:version/dprint.json",
source: "/dprint/:version.json",
},
]
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const nextConfig = {
output: "standalone",
pageExtensions: ["ts", "tsx", "md", "mdx"],
reactStrictMode: true,
redirects: () => Promise.resolve(redirects),
rewrites: () => Promise.resolve(rewrites),
redirects: async () => redirects,
rewrites: async () => rewrites,
}

const highlighter = await getHighlighter({ langs, themes })
Expand Down

0 comments on commit acef3e2

Please sign in to comment.