Files
medusa-store/www/apps/api-reference/config/index.ts
2024-08-16 09:28:02 +03:00

25 lines
530 B
TypeScript

import { DocsConfig } from "types"
import { getMobileSidebarItems } from "docs-ui"
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
export const config: DocsConfig = {
baseUrl,
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
// sidebar is auto generated
sidebar: {
default: [
{
type: "link",
title: "Introduction",
path: "introduction",
loaded: true,
},
],
mobile: getMobileSidebarItems({
baseUrl,
version: "v2",
}),
},
}