ultisuite-client/next.config.mjs
R3D347HR4Y 6ec95262af Add OnlyOffice integration and update project configurations
- Updated .env.example to include configuration for OnlyOffice Document Server.
- Modified the workspace configuration to remove the drive-suite path.
- Adjusted TypeScript environment imports for consistency.
- Enhanced Next.js configuration to disable canvas in Webpack.
- Updated package.json to include new dependencies for OnlyOffice and PDF.js.
- Added global styles for OnlyOffice theme integration in the CSS.
- Created new layout and page components for the Drive feature, including public sharing and editing functionalities.
- Updated metadata handling across various layouts to reflect the new app structure.
2026-06-07 15:49:21 +02:00

43 lines
1.0 KiB
JavaScript

/*
* Copyright (c) 2026 Eliott Guillaumin
* All rights reserved.
*/
import path from "node:path"
import { fileURLToPath } from "node:url"
/** @type {import('next').NextConfig} */
const projectRoot = path.dirname(fileURLToPath(import.meta.url))
const ultiProxyOrigin = process.env.ULTI_PROXY_ORIGIN ?? "http://127.0.0.1"
const nextConfig = {
output: "standalone",
// Docker standalone tracing only — do not set turbopack.root to projectRoot:
// breaks Tailwind @import resolution (resolves from parent /Users/red/workdev).
outputFileTracingRoot: projectRoot,
allowedDevOrigins: ['192.168.0.20', '127.0.0.1', 'localhost', '100.120.4.66'],
async rewrites() {
return [
{
source: "/api/v1/:path*",
destination: `${ultiProxyOrigin}/api/v1/:path*`,
},
]
},
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
},
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
canvas: false,
}
return config
},
}
export default nextConfig