un-proxy the api docs
This commit is contained in:
@@ -18,7 +18,7 @@ export const mainLinks: AppLinkProps[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "internal",
|
type: "internal",
|
||||||
to: "/api",
|
to: "/api/",
|
||||||
children: (
|
children: (
|
||||||
<>
|
<>
|
||||||
<CodeIcon className={inlineIconClass} /> API Reference
|
<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"],
|
"entryPoints": ["../reacord/library/main.ts"],
|
||||||
"out": ["public/api-dist"],
|
"out": ["public/api"],
|
||||||
"tsconfig": "../reacord/tsconfig.json",
|
"tsconfig": "../reacord/tsconfig.json",
|
||||||
"excludeInternal": true,
|
"excludeInternal": true,
|
||||||
"excludePrivate": true,
|
"excludePrivate": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user