Correct location for creating Decap CMS admin HTML page#10117
Conversation
The admin dashboard won't work if the Decap CMS HTML file is created within the public folder. Astro won't generate the route. Instead it should be created only in `src/pages` directory. Using `.html` extension will allow the use of the `window.CMS` object, which is useful for customizing the admin page.
❌ Deploy Preview for astro-docs-2 failed. Why did it fail? →Built without sensitive environment variables
|
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Hello! Thank you for opening your first PR to Astro’s Docs! 🎉 Here’s what will happen next:
|
sarah11918
left a comment
There was a problem hiding this comment.
Hi @dasShounak , thank you for contributing a fix to docs! 🚀
Unfortunately, we are on a code freeze for v4 Astro docs and are putting this branch into long-term, unmaintained status. So, that just means this PR will have to hang around for a little while until our v5 docs are published and we are accepting community contributions again!
Sorry for the inconvenience, and I'm putting a block on this PR so that it doesn't get accidentally merged before v5 docs are published. Please also understand that there may be conflicts at that time we have to resolve as the docs will be significantly updated. But, we'll find that out next week sometime! 😅
Have a great weekend, and we'll see you in v5! 👋
sarah11918
left a comment
There was a problem hiding this comment.
When checks pass, good to go! (Got a deploy preview on Netlify to rerun and work.)
|
Got this deploy to work on Netlify, assuming it should be fine! Thank you for taking the time to update this, and welcome to Team Docs! 🥳 |
* apostrophecms * builderio * buttercms * caisy * cloudcannon * contentful * cosmic * craft-cms * crystallize * datocms * decap-cms * directus * drupal * flotiq * frontmatter-cms * ghost * hashnode * hygraph * index * keystatic * keystonejs * kontent-ai * microcms * payload * preprcms * prismic * sanity * sitecore * spinal * statamic * storyblok * strapi * tina-cms * umbraco * wordpress * decap #10117 * alpinejs * cloudflare * db * deno * index * lit * markdoc * mdx * netlify * node * partytown * preact * prefetch * react * sitemap * solid-js * svelte * tailwind * vercel * vue * cra * docusaurus * eleventy * gatsby * gitbook * gridsome * hugo * jekyll * nextjs * nuxtjs * pelican * sveltekit * vuepress * wordpress * index * update existing docs * add new error docs * update error-reference * i18n(ko-KR): update `api-reference.mdx` * i18n(ko-KR): update `api-reference.mdx` * #10162 * fix * i18n(ko-KR): update `content-collections.mdx` * i18n(ko-KR): update `astro-db.mdx` * i18n(ko-KR): update `endpoints.mdx` * fix typo * v5 - 459 * v5 - 776 * v5 - 966 * update * i18n(ko-KR): update `actions.mdx` * i18n(ko-KR): update `imports.mdx` * i18n(ko-KR): update `actions.mdx` * i18n(ko-KR): update `upgrade-to/v2.mdx` and `upgrade-to/v3.mdx` * i18n(ko-KR): create `on-demand-rendering.mdx` * i18n(ko-KR): create `astro-actions.mdx` * i18n(ko-KR): update `content-collections.mdx` * i18n(ko-KR): update `v5.mdx` * i18n(ko-KR): update `integrations-reference.mdx` * i18n(ko-KR): update `routing.mdx` * i18n(ko-KR): update `typescript.mdx` * i18n(ko-KR): update `typescript.mdx` * i18n(ko-KR): update `install-and-setup.mdx` * update * update * update * update * i18n(ko-KR): update `markdown-content.mdx` * update * update * update * update * update * i18n(ko-KR): update `adapter-reference.mdx` * update * update * i18n(ko-KR): update `internationalization.mdx` * update * update links * i18n(ko-KR): update `middleware.mdx` * update * add v4 * update link * i18n(ko-KR): update `recipes/` * update link * update link * i18n(ko-KR): update `modules/` * update * i18n(ko-KR): update `environment-variables.mdx` * i18n(ko-KR): update `cli-reference.mdx` * i18n(ko-KR): update `configuration-reference.mdx` * tutorial - 0 * tutorial - 1 * tutorial - 3 * tutorial - 5 * tutorial - 6 * fix typo * update link * upstream `internationalization.mdx` updates * upstream `configuration-reference.mdx` changes --------- Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
Description (required)
The admin dashboard won't work if the Decap CMS HTML file is created within the public folder. Astro won't generate the route. Instead it should be created only in
src/pagesdirectory. Using.htmlextension will allow the use of thewindow.CMSobject, which is useful for customizing the admin page.First-time contributor to Astro Docs?
Yes