docs: add platform and local dev notes to migration guide
This commit is contained in:
parent
cff359f4f6
commit
8606b2dcd7
@ -14,13 +14,13 @@ To migrate, simply replace Netlify CMS with Static CMS, then address the changes
|
|||||||
|
|
||||||
Netlify CMS:
|
Netlify CMS:
|
||||||
|
|
||||||
```js
|
```html
|
||||||
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
|
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
Static CMS:
|
Static CMS:
|
||||||
|
|
||||||
```js
|
```html
|
||||||
<script src="https://unpkg.com/@staticcms/app@^1.0.0/dist/static-cms-app.js"></script>
|
<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
|
## 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.
|
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
|
||||||
|
```
|
||||||
|
@ -25,6 +25,7 @@ require('prismjs/components/prism-toml');
|
|||||||
require('prismjs/components/prism-markup-templating');
|
require('prismjs/components/prism-markup-templating');
|
||||||
require('prismjs/components/prism-handlebars');
|
require('prismjs/components/prism-handlebars');
|
||||||
require('prismjs/components/prism-markdown');
|
require('prismjs/components/prism-markdown');
|
||||||
|
require('prismjs/components/prism-bash');
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }: AppProps) {
|
function MyApp({ Component, pageProps }: AppProps) {
|
||||||
const [mode, setMode] = useState<PaletteMode>('dark');
|
const [mode, setMode] = useState<PaletteMode>('dark');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user