mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-04-10 22:04:27 +00:00
36 lines
733 B
JavaScript
36 lines
733 B
JavaScript
import path from 'node:path';
|
|
import pkg from './package.json' with { type: 'json' };
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
hostname: 's2.googleusercontent.com',
|
|
},
|
|
],
|
|
},
|
|
serverExternalPackages: [
|
|
'pdf-parse',
|
|
'playwright',
|
|
'officeparser',
|
|
'file-type',
|
|
],
|
|
outputFileTracingIncludes: {
|
|
'/api/**': [
|
|
'./node_modules/@napi-rs/canvas/**',
|
|
'./node_modules/@napi-rs/canvas-linux-x64-gnu/**',
|
|
'./node_modules/@napi-rs/canvas-linux-x64-musl/**',
|
|
],
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_VERSION: pkg.version,
|
|
},
|
|
turbopack: {
|
|
root: process.cwd(),
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|