Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/cache-handler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

const fs = require('fs');
const path = require('path');
const { mkdir } = require('fs/promises');
import fs from 'fs';
import path from 'path';
import { mkdir } from 'fs/promises';

const CACHE_DIR = path.join(process.cwd(), '.next/cache/incremental');

Expand Down Expand Up @@ -54,4 +54,4 @@ class FileSystemCache {
}
}

module.exports = () => new FileSystemCache();
export default () => new FileSystemCache();
2 changes: 1 addition & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const nextConfig = {
// Optimize static generation with incremental mode
experimental: {
forceSwcTransforms: true,
incrementalCacheHandlerPath: require.resolve('./cache-handler.js'),
incrementalCacheHandlerPath: './cache-handler.js',
isrMemoryCacheSize: 0, // Disable memory cache
},
// Note: exportPathMap is not compatible with the app directory
Expand Down