Obtaining drop-in index.html
#541
Unanswered
vadimkantorov
asked this question in
Q&A
Replies: 1 comment 19 replies
-
|
I’m not familiar with Astro to be honest. Perhaps you could search for issues to get an idea? Either way, you need to manually initialize the CMS using the API if you use the npm version. Here’s our work-in-progress documentation: |
Beta Was this translation helpful? Give feedback.
19 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I've followed the
npm install @sveltia/cmspath (for my Astro blog).How can I get a fully self-contained
admin/index.htmlfile which I can place inpublic/admin/index.html?Ideally, I'd like to build it from my npm-installed version of sveltia.
For now I've used:
Is it also possible to just download this js and inline it in the script tag?
Would it be possible to provide a ready index.html artifact in GitHub releases?
But I'd like to serve the CMS from my domain and not use and extra CDN.
Ideally, I'm searching for some npx/package.json command which could take an admin.html with manual init code and produce a final self-contained index.html which I can place into my public/admin/index.html. Or so that this building process can be directly integrated into
npm run buildprocess of the Astra blog (with npm-integrated build process, I can easily update the version of sveltia)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions