Skip to content

Commit

Permalink
fix(import): import error es
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Apr 27, 2020
1 parent 7693ab0 commit 2f747c3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- node/with-cache:
steps:
- run: npm install
- run: npm build
- run: npm run build
workflows:
build-and-test:
jobs:
Expand Down
4 changes: 2 additions & 2 deletions components/Comment/box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { GlobalOutlined, MailOutlined, UserOutlined } from '@ant-design/icons'
import { Input, message } from 'antd'
import { FC, useState } from 'react'
import styles from './index.module.scss'
import isEmail from 'validator/es/lib/isEmail'
import isUrl from 'validator/es/lib/isURL'
import isEmail from 'validator/lib/isEmail'
import isUrl from 'validator/lib/isURL'

const { TextArea } = Input

Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const isProd = process.env.NODE_ENV === 'production'
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
Expand All @@ -8,5 +9,8 @@ module.exports = withImages(
// apiUrl: 'http://47.114.54.60:2333/',
apiUrl: 'http://localhost:2333',
},
assetPrefix: isProd
? 'https://cdn.jsdelivr.net/gh/Innei/web-cdn@master'
: '',
}),
)
6 changes: 3 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import Loader from 'components/Loader'
import 'react-image-lightbox/style.css'
import 'kico-style'
import 'kico-style/paul.css'
// import 'assets/styles/shizuku.scss'
// import 'assets/styles/extra.scss'
import 'assets/styles/shizuku.scss'
import 'assets/styles/extra.scss'
// import 'antd/dist/antd.dark.css'
import 'assets/styles/main.scss'
// import 'assets/styles/main.scss'

import { BasicLayout } from 'layouts/BasicLayout'
import debounce from 'lodash/debounce'
Expand Down

0 comments on commit 2f747c3

Please sign in to comment.