mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 01:34:30 +03:00
Add PWA support
This commit is contained in:
parent
f1a8ca380f
commit
ae2a27e988
4
website/.gitignore
vendored
4
website/.gitignore
vendored
|
@ -39,4 +39,6 @@ next-env.d.ts
|
||||||
!public
|
!public
|
||||||
|
|
||||||
public/robots.txt
|
public/robots.txt
|
||||||
public/sitemap*
|
public/sitemap*
|
||||||
|
public/sw.js*
|
||||||
|
public/workbox*
|
|
@ -1,4 +1,5 @@
|
||||||
import MDX from '@next/mdx'
|
import MDX from '@next/mdx'
|
||||||
|
import PWA from 'next-pwa'
|
||||||
|
|
||||||
import remarkPlugins from './plugins/index.mjs'
|
import remarkPlugins from './plugins/index.mjs'
|
||||||
|
|
||||||
|
@ -13,17 +14,24 @@ const withMDX = MDX({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
const withPWA = PWA({
|
||||||
const nextConfig = withMDX({
|
dest: 'public',
|
||||||
reactStrictMode: true,
|
disable: process.env.NODE_ENV === 'development',
|
||||||
swcMinify: true,
|
|
||||||
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
|
|
||||||
eslint: {
|
|
||||||
ignoreDuringBuilds: true,
|
|
||||||
},
|
|
||||||
typescript: {
|
|
||||||
ignoreBuildErrors: true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/** @type {import('next').NextConfig} */
|
||||||
|
const nextConfig = withPWA(
|
||||||
|
withMDX({
|
||||||
|
reactStrictMode: true,
|
||||||
|
swcMinify: true,
|
||||||
|
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
|
||||||
|
eslint: {
|
||||||
|
ignoreDuringBuilds: true,
|
||||||
|
},
|
||||||
|
typescript: {
|
||||||
|
ignoreBuildErrors: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
)
|
||||||
|
|
||||||
export default nextConfig
|
export default nextConfig
|
||||||
|
|
5043
website/package-lock.json
generated
5043
website/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -30,6 +30,7 @@
|
||||||
"md-attr-parser": "^1.3.0",
|
"md-attr-parser": "^1.3.0",
|
||||||
"next": "13.0.2",
|
"next": "13.0.2",
|
||||||
"next-mdx-remote": "^4.2.0",
|
"next-mdx-remote": "^4.2.0",
|
||||||
|
"next-pwa": "^5.6.0",
|
||||||
"next-sitemap": "^3.1.32",
|
"next-sitemap": "^3.1.32",
|
||||||
"parse-numeric-range": "^1.3.0",
|
"parse-numeric-range": "^1.3.0",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user