un-proxy the api docs
This commit is contained in:
@@ -18,7 +18,7 @@ export const mainLinks: AppLinkProps[] = [
|
||||
},
|
||||
{
|
||||
type: "internal",
|
||||
to: "/api",
|
||||
to: "/api/",
|
||||
children: (
|
||||
<>
|
||||
<CodeIcon className={inlineIconClass} /> API Reference
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { LoaderFunction } from "remix"
|
||||
|
||||
// loading the api through a resource route lets us receive analytics and remix server logs for api pages
|
||||
export const loader: LoaderFunction = ({ request, params }) => {
|
||||
const url = new URL("/", request.url)
|
||||
return fetch(`${url.toString()}/api-dist/${params["*"]}`)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"entryPoints": ["../reacord/library/main.ts"],
|
||||
"out": ["public/api-dist"],
|
||||
"out": ["public/api"],
|
||||
"tsconfig": "../reacord/tsconfig.json",
|
||||
"excludeInternal": true,
|
||||
"excludePrivate": true,
|
||||
|
||||
Reference in New Issue
Block a user