next.config.ts 538 B

123456789101112131415161718192021222324
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import path from 'path';
  6. import type { NextConfig } from 'next';
  7. const __dirname = new URL('.', import.meta.url).pathname;
  8. const nextConfig: NextConfig = {
  9. reactStrictMode: false,
  10. webpack: (config) => {
  11. config.resolve.alias = {
  12. ...config.resolve.alias,
  13. '@app': path.resolve(__dirname, 'src/app'),
  14. '@editor': path.resolve(__dirname, 'src/editor'),
  15. };
  16. return config;
  17. },
  18. };
  19. export default nextConfig;