From 9ba3ec40d66a034b9601863eadc7191d03c4f106 Mon Sep 17 00:00:00 2001 From: web Date: Tue, 29 Jul 2025 05:38:09 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(netlify):=20Add=20Netlify=20co?= =?UTF-8?q?nfiguration=20for=20admin=20and=20user=20apps=20with=20Next.js?= =?UTF-8?q?=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/netlify.toml | 8 ++++++++ apps/user/netlify.toml | 8 ++++++++ package.json | 1 + 3 files changed, 17 insertions(+) create mode 100644 apps/admin/netlify.toml create mode 100644 apps/user/netlify.toml diff --git a/apps/admin/netlify.toml b/apps/admin/netlify.toml new file mode 100644 index 0000000..40bf700 --- /dev/null +++ b/apps/admin/netlify.toml @@ -0,0 +1,8 @@ +[build] + command = "bun run build --filter=ppanel-admin-web" + publish = "./apps/admin/.next/" + [build.environment] + NODE_OPTIONS = "--max-old-space-size=8192" + +[[plugins]] + package = "@netlify/plugin-nextjs" \ No newline at end of file diff --git a/apps/user/netlify.toml b/apps/user/netlify.toml new file mode 100644 index 0000000..a3c0954 --- /dev/null +++ b/apps/user/netlify.toml @@ -0,0 +1,8 @@ +[build] + command = "bun run build --filter=ppanel-user-web" + publish = "./apps/user/.next/" + [build.environment] + NODE_OPTIONS = "--max-old-space-size=8192" + +[[plugins]] + package = "@netlify/plugin-nextjs" \ No newline at end of file diff --git a/package.json b/package.json index ebcd2dc..1e50cba 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ }, "prettier": "@workspace/prettier-config", "devDependencies": { + "@netlify/plugin-nextjs": "^5.11.6", "@umijs/openapi": "^1.13.0", "@workspace/commitlint-config": "workspace:*", "@workspace/eslint-config": "workspace:*",