Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 9234c54

Browse files
authored
chore: fix preview crash & update config (#1375)
1 parent 2025937 commit 9234c54

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

deploy/production/web.tar.gz

88 Bytes
Binary file not shown.

next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
1414
const nextConfig = {
1515
swcMinify: true,
1616
productionBrowserSourceMaps: true,
17+
compiler: {
18+
removeConsole: {
19+
exclude: ['error'],
20+
},
21+
},
1722
// pwa: {
1823
// dest: 'public',
1924
// disable: process.env.NODE_ENV !== 'production',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coderplanets_web",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"license": "Apache License 2.0",
55
"scripts": {
66
"dev": "cross-env NODE_ENV=dev next dev",

src/stores/RootStore/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ import {
7878
UserPublishedArticlesStore,
7979
// BlogEditorStore,
8080
CommunityTagSetterStore,
81-
// CollectionFolderStore,
81+
CollectionFolderStore,
8282
ShareStore,
8383
ArticleContentStore,
8484
ArticleViewerStore,
@@ -181,7 +181,7 @@ const rootStore = T.model({
181181
userPublishedArticles: T.optional(UserPublishedArticlesStore, {}),
182182
// blogEditor: T.optional(BlogEditorStore, {}),
183183
communityTagSetter: T.optional(CommunityTagSetterStore, {}),
184-
// collectionFolder: T.optional(CollectionFolderStore, {}),
184+
collectionFolder: T.optional(CollectionFolderStore, {}),
185185
share: T.optional(ShareStore, {}),
186186
articleContent: T.optional(ArticleContentStore, {}),
187187
articleViewer: T.optional(ArticleViewerStore, {}),

src/stores/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export { default as KanbanThreadStore } from '@/containers/thread/KanbanThread/s
8585
export { default as FriendsContentStore } from '@/containers/content/FriendsContent/store'
8686
// export { default as BlogEditorStore } from '@/containers/editor/BlogEditor/store'
8787
export { default as CommunityTagSetterStore } from '@/containers/tool/CommunityTagSetter/store'
88-
// export { default as CollectionFolderStore } from '@/containers/tool/CollectionFolder/store'
88+
export { default as CollectionFolderStore } from '@/containers/tool/CollectionFolder/store'
8989
export { default as ShareStore } from '@/containers/tool/Share/store'
9090
export { default as ArticleContentStore } from '@/containers/content/ArticleContent/store'
9191
export { default as ArticleViewerStore } from '@/containers/viewer/ArticleViewer/store'

0 commit comments

Comments
 (0)