Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i deploy these docs in FastAPI #317

Open
aurthurm opened this issue Jan 28, 2024 · 2 comments
Open

How do i deploy these docs in FastAPI #317

aurthurm opened this issue Jan 28, 2024 · 2 comments

Comments

@aurthurm
Copy link

How do i deploy generated docs in FastAPI. I want themto be served in a route /graphql/documentation whilst i can use any other routed my other projects

@pelletier197
Copy link
Collaborator

I figure you could use static files in FastAPI. Although I have never tried it. It's possible FastAPI doesn't support clean URLs out for the box, in which case you might have to look for another option (plugin or other hosting method).

As for the base URL, you must use the option website.options.siteRoot when building your website.

Let me know if you need more help. If you figure out how to do it for FastAPI, let me know, I'd be happy to add it to the docs.

@pelletier197
Copy link
Collaborator

@aurthurm any news about this ? If not, I'll close for inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants