Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: keeper redirects #89

Merged
merged 4 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}