flowgram.ai/apps/demo-nextjs/next.config.ts
Louis Young a6d3b97057
feat: nextjs demo (#125)
* 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
2025-04-03 07:58:20 +00:00

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;