File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- const { randomUUID } = require ( "node:crypto" ) ;
1+ // @ts -check
2+
3+ import { randomUUID } from "node:crypto" ;
4+ import createNextIntlPlugin from "next-intl/plugin" ;
25
3- const createNextIntlPlugin = require ( "next-intl/plugin" ) ;
46const withNextIntl = createNextIntlPlugin ( ) ;
57
68const imageHostname = String ( process . env . NEXT_PUBLIC_DRUPAL_BASE_URL ) . split (
@@ -16,7 +18,7 @@ const nextConfig = {
1618 cacheHandler :
1719 // Only use the cache handler in production
1820 process . env . NODE_ENV === "production"
19- ? require . resolve ( "./cache-handler.mjs" )
21+ ? new URL ( "./cache-handler.mjs" , import . meta . url ) . pathname
2022 : undefined ,
2123 cacheMaxMemorySize : 0 , // Disable in-memory cache
2224
@@ -37,7 +39,7 @@ const nextConfig = {
3739
3840 async generateBuildId ( ) {
3941 return process . env . CIRCLECI
40- ? process . env . CIRCLE_BUILD_NUM
42+ ? String ( process . env . CIRCLE_BUILD_NUM )
4143 : randomUUID ( ) . split ( "-" ) [ 0 ] ;
4244 } ,
4345
@@ -81,4 +83,4 @@ const nextConfig = {
8183 } ,
8284} ;
8385
84- module . exports = withNextIntl ( nextConfig ) ;
86+ export default withNextIntl ( nextConfig ) ;
You can’t perform that action at this time.
0 commit comments