b307919bf7
Replace the single JSX file with a Next.js project, shared catalog and recommendation modules, backend API routes, file-backed persistence, Ollama recommendation endpoint, and picture-layer bike composition. Add initial aligned component assets for existing BSU layers plus RockShox and Maxxis products.
8 lines
235 B
TypeScript
8 lines
235 B
TypeScript
import path from "node:path";
|
|
export { canvas, layerPaths } from "./layers";
|
|
|
|
export function publicPathToFile(publicPath: string) {
|
|
const clean = publicPath.replace(/^\/+/, "");
|
|
return path.join(process.cwd(), "public", clean);
|
|
}
|