mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-04-10 05:44:25 +00:00
feat(next-config): specify external packages
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import path from 'node:path';
|
||||||
import pkg from './package.json' with { type: 'json' };
|
import pkg from './package.json' with { type: 'json' };
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
@@ -10,7 +11,7 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
serverExternalPackages: ['pdf-parse'],
|
serverExternalPackages: ['pdf-parse', 'playwright', 'officeparser', 'file-type'],
|
||||||
outputFileTracingIncludes: {
|
outputFileTracingIncludes: {
|
||||||
'/api/**': [
|
'/api/**': [
|
||||||
'./node_modules/@napi-rs/canvas/**',
|
'./node_modules/@napi-rs/canvas/**',
|
||||||
@@ -21,6 +22,9 @@ const nextConfig = {
|
|||||||
env: {
|
env: {
|
||||||
NEXT_PUBLIC_VERSION: pkg.version,
|
NEXT_PUBLIC_VERSION: pkg.version,
|
||||||
},
|
},
|
||||||
|
turbopack: {
|
||||||
|
root: process.cwd()
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user