- Increased tesseract.js worker creation timeout from 8s → 20s (accounts for lazy loading and language model download on first run) - Added allowedDevOrigins to next.config.mjs to permit localhost and .local hostnames - Resolves OCR timeout on slow connections and first-time initialization
21 lines
383 B
JavaScript
21 lines
383 B
JavaScript
import withPWAInit from 'next-pwa';
|
|
|
|
const withPWA = withPWAInit({
|
|
dest: 'public',
|
|
disable: process.env.NODE_ENV === 'development',
|
|
register: true,
|
|
skipWaiting: true,
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "standalone",
|
|
allowedDevOrigins: [
|
|
"localhost",
|
|
"127.0.0.1",
|
|
"*.local",
|
|
],
|
|
};
|
|
|
|
export default withPWA(nextConfig);
|