forked from magma/magma-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comments out imports of preview templates (and their registrations)
The mere import of these components causes build to fail. Happens when the current gatsby version is built with gatsby-plugin-netlify-cms plugin. See gatsbyjs/gatsby#27891 Signed-off-by: Gabriel Horacio Cutrini <[email protected]>
- Loading branch information
Showing
2 changed files
with
3,237 additions
and
3,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import CMS from 'netlify-cms-app' | ||
|
||
import DefaultPagePreview from './preview-templates/DefaultPagePreview' | ||
/*import DefaultPagePreview from './preview-templates/DefaultPagePreview' | ||
import BlogPostPreview from './preview-templates/BlogPostPreview' | ||
import IndexPagePreview from './preview-templates/IndexPagePreview' | ||
import SupportersPagePreview from './preview-templates/SupportersPagePreview' | ||
import CaseStudiesPagePreview from './preview-templates/CaseStudiesPagePreview' | ||
import CaseStudiesPagePreview from './preview-templates/CaseStudiesPagePreview'*/ | ||
|
||
import { Widget as FileRelationWidget } from '@ncwidgets/file-relation' | ||
import { Widget as IdWidget } from '@ncwidgets/id' | ||
|
||
CMS.registerWidget(IdWidget) | ||
CMS.registerWidget(FileRelationWidget) | ||
|
||
CMS.registerPreviewStyle('style/styles.scss'); | ||
/*CMS.registerPreviewStyle('style/styles.scss'); | ||
CMS.registerPreviewTemplate('indexPage', IndexPagePreview) | ||
CMS.registerPreviewTemplate('pages', DefaultPagePreview) | ||
CMS.registerPreviewTemplate('blog', BlogPostPreview) | ||
CMS.registerPreviewTemplate('supportersPage', SupportersPagePreview) | ||
CMS.registerPreviewTemplate('caseStudiesPage', CaseStudiesPagePreview) | ||
CMS.registerPreviewTemplate('caseStudiesPage', CaseStudiesPagePreview)*/ |
Oops, something went wrong.