Skip to content

Commit

Permalink
get rid of subpaths
Browse files Browse the repository at this point in the history
  • Loading branch information
yoziru committed Mar 27, 2024
1 parent d4e8662 commit f1ff799
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions middleware.ts

This file was deleted.

2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// set basepath based on environment
basePath: process.env.NEXT_PUBLIC_BASE_PATH ?? "/vllm",
basePath: process.env.NEXT_PUBLIC_BASE_PATH ?? "",
output: "standalone",
};

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function Sidebar({
{localChats.map(({ chatId, messages }, index) => (
<Link
key={index}
href={`/${chatId.substr(5)}`}
href={`/chats/${chatId.substring(5)}`}
className={cn(
{
[buttonVariants({ variant: "secondaryLink" })]:
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}

export const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? "/vllm";
export const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? "";

0 comments on commit f1ff799

Please sign in to comment.