mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
* feat(demo-workflow): init demo-mastra-workflow project * feat(demo-workflow): node render style * feat(demo-workflow): init runtime api * refactor(demo-workflow): component move to @editor * refactor(demo-workflow): simplify editor client render * refactor(demo-runtime): rename demo-mastra-workflow to demo-nextjs * chore: rush update * fix(plugin): package.json export dist type path * feat(demo-workflow): remove semi-ui deps * fix(demo-workflow): next build cannot find eslint config * fix(demo-workflow): en lang by default
21 lines
496 B
TypeScript
21 lines
496 B
TypeScript
import path from 'path';
|
|
|
|
import type { NextConfig } from 'next';
|
|
|
|
const __dirname = new URL('.', import.meta.url).pathname;
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: false,
|
|
webpack: (config) => {
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
'@app': path.resolve(__dirname, 'src/app'),
|
|
'@editor': path.resolve(__dirname, 'src/editor'),
|
|
'@runtime': path.resolve(__dirname, 'src/runtime'),
|
|
};
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|