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

📄 FAQ - Update Base Path #2309

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions content/docs/introduction/faq.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: FAQ
last_edited: '2024-07-31T14:00:00.000Z'
last_edited: '2024-10-09T00:48:59.795Z'
next: ''
previous: ''
---
Expand Down Expand Up @@ -138,6 +138,14 @@ This error means that the TinaCMS admin HTML file failed to load the JavaScript

When you run `tinacms dev` locally, Tina will generate a development admin/index.html file, which loads its assets from localhost. For production, this file should be built in CI using `tinacms build`. If a developer manually removes the admin/index.html file from their `.gitignore`, they may run into this issue.

### Your site is served on a different base path

If your site is served at a sub-directory, ensure that your `build.basePath` is [configured appropriately](/docs/reference/config/#definition)

<Youtube embedSrc="https://www.youtube.com/embed/9O6gCsxV4Ms?si=451MBmVoTsxXu7X7" />

**Video: FAQ - Setting a base path for TinaCMS (3min)**

## Common TinaCloud Errors

### How do I resolve the `Unable to find record 'tina/__generated__/_graphql.json'` error?
Expand Down Expand Up @@ -181,7 +189,7 @@ Error: Unable to fetch, errors:

<Youtube embedSrc=" https://www.youtube.com/embed/MTIJotdIG9E?si=8mcaNAqogQRwL678" />

**Video: Bypassing GitHub branch protection with TinaCMS (3min)**
**Video: FAQ - Bypassing GitHub branch protection with TinaCMS (3min)**

Generally this happens when there is branch protection on your main branch and TinaCloud is unable to bypass it. Until July 2024, the TinaCloud GitHub app had admin rights to repositories which allowed it to bypass these rules for most repositories.

Expand Down
Loading