mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
Set outputFileTracingRoot back to projectRoot. In Docker, the parent (monorepoRoot) was /, which caused Next.js to emit server.js at .next/standalone/app/server.js and pull in /usr, /root, /proc paths, breaking from /app. Fixes #1064 Co-authored-by: Muhammad Ridwan Ramadhan <ridwanramadhan8888@gmail.com>
This commit is contained in:
co-authored by
Muhammad Ridwan Ramadhan
parent
74c9879e8e
commit
692d1fdf57
+3
-4
@@ -1,8 +1,7 @@
|
|||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { dirname, resolve } from "node:path";
|
import { dirname } from "node:path";
|
||||||
|
|
||||||
const projectRoot = dirname(fileURLToPath(import.meta.url));
|
const projectRoot = dirname(fileURLToPath(import.meta.url));
|
||||||
const monorepoRoot = resolve(projectRoot, "..");
|
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
@@ -11,9 +10,9 @@ const nextConfig = {
|
|||||||
turbopack: {
|
turbopack: {
|
||||||
root: projectRoot
|
root: projectRoot
|
||||||
},
|
},
|
||||||
outputFileTracingRoot: monorepoRoot,
|
outputFileTracingRoot: projectRoot,
|
||||||
outputFileTracingExcludes: {
|
outputFileTracingExcludes: {
|
||||||
"*": ["./app/gitbook/**/*", "./gitbook/**/*"]
|
"*": ["./gitbook/**/*"]
|
||||||
},
|
},
|
||||||
images: {
|
images: {
|
||||||
unoptimized: true
|
unoptimized: true
|
||||||
|
|||||||
Reference in New Issue
Block a user