Replies: 2 comments 3 replies
-
Just a heads up, I haven't found any Dockerfile examples in Fumadocs' docs. If it exists I would be happy to read it :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Okay so I somehow debugged it, looks like this was my problem: source.ts import { docs, meta } from '../../.source';
import { createMDXSource } from 'fumadocs-mdx';
import { loader } from 'fumadocs-core/source';
import { createElement } from 'react';
import { icons } from 'lucide-react';
export const source = loader({
baseUrl: '/docs',
- rootDir: 'content/docs',
+
source: createMDXSource(docs, meta),
icon(icon) {
if (!icon) {
return;
}
if (icon in icons) {
return createElement(icons[icon as keyof typeof icons], {
color: '#2fa6d1'
});
}
}
}); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am testing out fumadocs for our internal documentation site. Currently, I have everything configured so that the documentation works as expected in dev mode. But when I try to package it into a Docker image, the content seems to be missing, even though it is present in the final image, it is not served by the server. Here is my Dockerfile:
The docs are located in the content/docs folder which is copied over to the container before doing
yarn build
.And some other important files:
next.config.mjs
source.config.ts
lib/source.ts
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions