mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-07-03 14:07:11 +02:00
@@ -1,10 +1,27 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
import { fileURLToPath } from "url";
|
||||
import { dirname } from "path";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const nextConfig = {
|
||||
typescript: {
|
||||
ignoreBuildErrors: true
|
||||
},
|
||||
// serverRuntimeConfig: {
|
||||
// chromePath: process.env.CHROME_PATH
|
||||
// },
|
||||
serverRuntimeConfig: {
|
||||
chromePath: process.env.CHROME_PATH
|
||||
PROJECT_ROOT: __dirname
|
||||
},
|
||||
webpack: (config, { isServer }) => {
|
||||
if (isServer) {
|
||||
config.externals.push("_http_common");
|
||||
}
|
||||
return config;
|
||||
},
|
||||
experimental: {
|
||||
serverComponentsExternalPackages: ["puppeteer-core"]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user