Skip to content

Pin Netlify build settings and Next.js runtime in netlify.toml - #145

Merged
vadymmusiienko merged 1 commit into
mainfrom
netlify-config
Oct 26, 2026
Merged

vadymmusiienko merged 1 commit into
mainfrom
netlify-config

Conversation

@vadymmusiienko

Copy link
Copy Markdown
Collaborator

Relinking the repo in Netlify (after the move to aspc) reset the site's build settings and dropped the auto-installed Next.js runtime. The next production build shipped without the server function and every page returned 404 (fixed by republishing the previous deploy).

This declares the build command, publish directory and @netlify/plugin-nextjs in frontend/netlify.toml, so the deploy no longer depends on dashboard state.

@netlify

netlify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for p-ickup ready!

Name Link
🔨 Latest commit fc20379
🔍 Latest deploy log https://app.netlify.com/projects/p-ickup/deploys/6adec7550847ba97bac4c12a
😎 Deploy Preview https://deploy-preview-145--p-ickup.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The configuration can be bypassed if the dashboard base directory resets, and the Next.js plugin version is not pinned.

2 open issues
What changed in this PR

This pull request adds repository-managed Netlify settings for the Next.js frontend to reduce reliance on dashboard configuration.

Changes:

  • Defines pnpm run build as the Netlify build command.
  • Sets .next as the publish directory.
  • Enables @netlify/plugin-nextjs.
  • Leaves the base directory dependent on Netlify dashboard configuration and does not pin the plugin version.
File Description
frontend/​netlify.toml Adds Netlify build, publish, and Next.js plugin settings; unresolved issues remain around declarative base-directory configuration and exact plugin version pinning.

Review effort: Lite

Comment thread frontend/netlify.toml
@@ -0,0 +1,9 @@
# Netlify reads this file from the base directory (frontend/), which is set in the Netlify UI.
Comment thread frontend/netlify.toml
publish = ".next"

[[plugins]]
package = "@netlify/plugin-nextjs"
@vadymmusiienko
vadymmusiienko merged commit 3ad3aa9 into main Oct 26, 2026
10 checks passed
@vadymmusiienko
vadymmusiienko deleted the netlify-config branch October 26, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants