refactor state storge, UI editor

This commit is contained in:
taDuc
2026-05-07 13:38:52 +07:00
parent a29a3a2049
commit 8b1df73797
46 changed files with 3345 additions and 3112 deletions

View File

@@ -1,4 +1,12 @@
import type { NextConfig } from "next";
import { fileURLToPath } from "node:url";
import path from "node:path";
// Turbopack uses its "root" directory for module resolution. In a repo that
// contains multiple projects (without a package.json at the repo root),
// Turbopack can accidentally pick the repo root and then fail to resolve
// dependencies like `tailwindcss`. Force Turbopack root to this app directory.
const turbopackRoot = path.dirname(fileURLToPath(import.meta.url));
const nextConfig: NextConfig = {
/* config options here */
@@ -28,6 +36,7 @@ const nextConfig: NextConfig = {
},
turbopack: {
root: turbopackRoot,
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
@@ -37,4 +46,4 @@ const nextConfig: NextConfig = {
},
};
export default nextConfig;
export default nextConfig;