mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Add PWA support
This commit is contained in:
		
							parent
							
								
									f1a8ca380f
								
							
						
					
					
						commit
						ae2a27e988
					
				
							
								
								
									
										2
									
								
								website/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								website/.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -40,3 +40,5 @@ next-env.d.ts | ||||||
| 
 | 
 | ||||||
| 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,8 +14,14 @@ const withMDX = MDX({ | ||||||
|     }, |     }, | ||||||
| }) | }) | ||||||
| 
 | 
 | ||||||
|  | const withPWA = PWA({ | ||||||
|  |     dest: 'public', | ||||||
|  |     disable: process.env.NODE_ENV === 'development', | ||||||
|  | }) | ||||||
|  | 
 | ||||||
| /** @type {import('next').NextConfig} */ | /** @type {import('next').NextConfig} */ | ||||||
| const nextConfig = withMDX({ | const nextConfig = withPWA( | ||||||
|  |     withMDX({ | ||||||
|         reactStrictMode: true, |         reactStrictMode: true, | ||||||
|         swcMinify: true, |         swcMinify: true, | ||||||
|         pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'], |         pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'], | ||||||
|  | @ -24,6 +31,7 @@ const nextConfig = withMDX({ | ||||||
|         typescript: { |         typescript: { | ||||||
|             ignoreBuildErrors: true, |             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