From 08354b18b94f25abe46d6191da355813f9690cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Diamond?= <32074058+Andre-Diamond@users.noreply.github.com> Date: Thu, 30 Jan 2025 12:46:06 +0200 Subject: [PATCH] feat: Add Netlify configuration and Next.js plugin to project --- netlify.toml | 14 +++++++++++++- package-lock.json | 13 +++++++++++++ package.json | 3 +++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 75d87db..7f1c64b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,2 +1,14 @@ +# netlify.toml + +[build] + command = "npm run build" # or "yarn build" + # For Next.js, the publish directory should normally be ".next" + publish = ".next" + [functions] - node_bundler = "esbuild" \ No newline at end of file + # Your existing config + node_bundler = "esbuild" + +[[plugins]] + # Use the official Netlify Next.js plugin + package = "@netlify/plugin-nextjs" diff --git a/package-lock.json b/package-lock.json index 2e7b865..9ead4ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,9 @@ "react-markdown": "^9.0.0", "react-select": "^5.7.7", "typescript": "5.1.3" + }, + "devDependencies": { + "@netlify/plugin-nextjs": "^5.9.4" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -447,6 +450,16 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" }, + "node_modules/@netlify/plugin-nextjs": { + "version": "5.9.4", + "resolved": "https://registry.npmjs.org/@netlify/plugin-nextjs/-/plugin-nextjs-5.9.4.tgz", + "integrity": "sha512-Q9qyhGUxFuM3kuWmoaj4yHPUfHhOsZmwdsQv4kIXkBWVu8FOe0RFHRP0A0EXciSVFGwq+XAo3H5jEtVSANAOWw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@next/env": { "version": "14.2.23", "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.23.tgz", diff --git a/package.json b/package.json index 329fb39..084e88f 100644 --- a/package.json +++ b/package.json @@ -27,5 +27,8 @@ "react-markdown": "^9.0.0", "react-select": "^5.7.7", "typescript": "5.1.3" + }, + "devDependencies": { + "@netlify/plugin-nextjs": "^5.9.4" } }