File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
33import { PyodidePlugin } from "@pyodide/webpack-plugin" ;
44import { version as pyodideVersion } from "pyodide/package.json" ;
55import LicensePlugin from "webpack-license-plugin" ;
6+ import { dirname } from "node:path" ;
67
78initOpenNextCloudflareForDev ( ) ;
89
@@ -72,7 +73,21 @@ const nextConfig: NextConfig = {
7273 // クライアントビルドのみサードパーティライセンスを /_next/static/oss-licenses.json に出力
7374 if ( ! isServer ) {
7475 config . plugins . push (
75- new LicensePlugin ( { outputFilename : "static/oss-licenses.json" } )
76+ new LicensePlugin ( {
77+ outputFilename : "static/oss-licenses.json" ,
78+ includeNoticeText : true ,
79+ excludedPackageTest : ( packageName /*, version*/ ) => {
80+ return packageName . startsWith ( "@my-code" ) ;
81+ } ,
82+ licenseOverrides : {
83+ "@better-auth/core@1.4.20" : "MIT" ,
84+ "@better-fetch/fetch@1.1.21" : "MIT" ,
85+ } ,
86+ includePackages : ( ) =>
87+ [ "tailwindcss" , "@fontsource/m-plus-rounded-1c" ] . map ( ( pkg ) =>
88+ dirname ( import . meta. resolve ( `${ pkg } /package.json` ) )
89+ ) ,
90+ } )
7691 ) ;
7792 }
7893 return config ;
You can’t perform that action at this time.
0 commit comments