Skip to content

Commit

Permalink
feat: keeper redirects (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
RPDeshaies authored Nov 13, 2024
1 parent 609e4b5 commit d347b7d
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export function CreatorPage(props: {
const colorScheme = lowerCaseLabel.includes("twitter")
? "twitter"
: lowerCaseLabel.includes("facebook")
? "facebook"
: lowerCaseLabel.includes("itch")
? "red"
: undefined;
? "facebook"
: lowerCaseLabel.includes("itch")
? "red"
: undefined;
return (
<Tag
key={label}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build]
command = "npm install && npm run build"
publish = "out"
publish = ".next"
32 changes: 31 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
images: {
unoptimized: true,
},
redirects: async () => {
return [
{
source: "/",
destination: "https://keeper.farirpgs.com",
permanent: false,
},
{
source: "/browse",
destination: "https://keeper.farirpgs.com",
permanent: false,
},
{
source: "/creators/:creatorSlug",
destination: "https://keeper.farirpgs.com/creators/:creatorSlug",
permanent: false,
},
{
source: "/creators/:creatorSlug/projects/:projectSlug",
destination:
"https://keeper.farirpgs.com/resources/:creatorSlug/:projectSlug",
permanent: false,
},
{
source: "/creators/:creatorSlug/projects/:projectSlug/:pageSlug",
destination:
"https://keeper.farirpgs.com/resources/:creatorSlug/:projectSlug/:pageSlug",
permanent: false,
},
];
},
};

module.exports = nextConfig;
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"name": "fari-community",
"version": "1.0.0",
"description": "",
"engines": {
"node": ">=20.0.0"
},
"main": "index.js",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"preview": "bun build && bun deploy:preview",
"beta": "bun build && bun deploy:preview -- --alias beta",
"alpha": "bun build && bun deploy:preview -- --alias alpha",
"prod": "bun build && bun deploy:preview -- --prod",
"preview": "bun run build && bun deploy:preview",
"beta": "bun run build && bun deploy:preview -- --alias beta",
"alpha": "bun run build && bun deploy:preview -- --alias alpha",
"prod": "bun run build && bun deploy:preview -- --prod",
"deploy:preview": "netlify deploy --site b106e8c1-1ca6-4da3-84d7-d06d7fe1ec68",
"deploy:prod": "netlify deploy --site b106e8c1-1ca6-4da3-84d7-d06d7fe1ec68 --prod",
"prepare": "husky install"
Expand Down Expand Up @@ -52,5 +54,6 @@
"@types/remarkable": "^2.0.4",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

0 comments on commit d347b7d

Please sign in to comment.