docs: add platform and local dev notes to migration guide

This commit is contained in:
Daniel Lautzenheiser 2023-01-25 08:38:21 -05:00
parent cff359f4f6
commit 8606b2dcd7
2 changed files with 33 additions and 2 deletions

View File

@ -14,13 +14,13 @@ To migrate, simply replace Netlify CMS with Static CMS, then address the changes
Netlify CMS:
```js
```html
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
```
Static CMS:
```js
```html
<script src="https://unpkg.com/@staticcms/app@^1.0.0/dist/static-cms-app.js"></script>
```
@ -93,3 +93,33 @@ import CMS from '@staticcms/core';
## Beta Features
All beta features from Netlify CMS that were kept, remain in beta and may not fully function in their current state. Please [submit an issue](https://github.com/StaticJsCMS/static-cms/issues) for any bugs you find.
## Platform Changes
### Gatsby
If you are using Gatsby you will need to change out your CMS plugin.
```bash
# Uninstall Netlify CMS plugin
npm uninstall gatsby-plugin-netlify-cms
# Install Static CMS plugin
npm install gatsby-plugin-static-cms
```
## Local Development Changes
If you are using the local backend you will need to switch the proxy server package you are using.
Netlify CMS:
```bash
npx netlify-cms-proxy-server
```
Static CMS:
```bash
npx @staticcms/proxy-server
```

View File

@ -25,6 +25,7 @@ require('prismjs/components/prism-toml');
require('prismjs/components/prism-markup-templating');
require('prismjs/components/prism-handlebars');
require('prismjs/components/prism-markdown');
require('prismjs/components/prism-bash');
function MyApp({ Component, pageProps }: AppProps) {
const [mode, setMode] = useState<PaletteMode>('dark');