next.config.ts 596 B

12345678910111213141516171819202122232425
  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. '@runtime': path.resolve(__dirname, 'src/runtime'),
  16. };
  17. return config;
  18. },
  19. };
  20. export default nextConfig;