diff --git a/README.md b/README.md index bf9a252..3c46030 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ The easiest way to get started is to use the pre-built Docker image. docker run --rm -d -p 3000:3000 -e VLLM_URL=http://host.docker.internal:8000 ghcr.io/yoziru/nextjs-vllm-ui:latest ``` -Then go to [localhost:3000](http://localhost:3000) and start chatting with your favourite model! +Then go to [localhost:3000](http://localhost:3000/vllm) and start chatting with your favourite model! # Development 📖 diff --git a/next.config.mjs b/next.config.mjs index 5e8be72..fe4a907 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { // set basepath based on environment - basePath: process.env.NEXT_PUBLIC_BASE_PATH ?? "", + basePath: process.env.NEXT_PUBLIC_BASE_PATH ?? "/vllm", output: "standalone", }; diff --git a/src/lib/utils.ts b/src/lib/utils.ts index c40ea62..f73a69c 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,8 +1,8 @@ -import { type ClassValue, clsx } from "clsx" -import { twMerge } from "tailwind-merge" +import { type ClassValue, clsx } from "clsx"; +import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)) + return twMerge(clsx(inputs)); } -export const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? "" +export const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? "/vllm";