Skip to content
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
5 changes: 5 additions & 0 deletions app/join/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { redirect } from "next/navigation";

export default function JoinPage() {
redirect("https://discord.gg/yrezWw4r9r");
}
Comment on lines +1 to +5
7 changes: 5 additions & 2 deletions components/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { useState } from "react"
import Image from "next/image"
import Link from "next/link"

import { urlPrefix } from "../next.config"
const BASE_PATH = urlPrefix

Comment on lines +7 to +9
const navLinks = [
{ label: "About", href: "/#about" },
{ label: "Activity", href: "/#activity" },
Expand All @@ -23,9 +26,9 @@ export function Header() {
return (
<header>
<div className="mx-auto flex min-h-16 max-w-5xl items-center justify-between gap-4 px-4 sm:px-6">
<Link href="/" className="flex shrink-0 items-center gap-3">
<Link href={"/"} className="flex shrink-0 items-center gap-3">
<Image
src="/assets/logo.webp"
src={BASE_PATH + "/assets/logo.webp"}
alt="Rust Developers JP Logo"
width={463}
height={307}
Expand Down
11 changes: 1 addition & 10 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { NextConfig } from "next";

const urlPrefix = process.env.URL_PREFIX ? '/' + process.env.URL_PREFIX : ''
export const urlPrefix = process.env.URL_PREFIX ? '/' + process.env.URL_PREFIX : ''

const nextConfig: NextConfig = {
output: "export",
Expand All @@ -10,15 +10,6 @@ const nextConfig: NextConfig = {
images: {
unoptimized: true,
},
Comment on lines 3 to 12
async redirects() {
return [
{
source: "/join",
destination: "https://discord.gg/yrezWw4r9r",
permanent: false,
},
];
},
};

export default nextConfig;