Skip to content

Commit

Permalink
set default subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
yoziru committed Mar 27, 2024
1 parent 40136b3 commit 52d284a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 📖

Expand Down
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 ?? "",
basePath: process.env.NEXT_PUBLIC_BASE_PATH ?? "/vllm",
output: "standalone",
};

Expand Down
8 changes: 4 additions & 4 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -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";

0 comments on commit 52d284a

Please sign in to comment.