Vercel build fails, server actions enable feature flag in Next 14
Unanswered
Philippine Crocodile posted this in #help-forum
Philippine CrocodileOP
So after updating my project to next 14 all my vercel builds fail with this error:
To use Server Actions, please enable the feature flag in your Next.js config.
On my machine i removed the experimental flag as it wasn't needed anymore, and a warning messages was showing when doing build or dev command, telling me that server actions are now stable and don't need to be flagged.
But on vercel the build fails sayin i need to enable the experimnetal feature flag, even if the build is next 14
Thanks for any advice provided
This is my next config without the experimental flags after updating to next 14, on my machine the build complets but on vercel i get fails
To use Server Actions, please enable the feature flag in your Next.js config.
On my machine i removed the experimental flag as it wasn't needed anymore, and a warning messages was showing when doing build or dev command, telling me that server actions are now stable and don't need to be flagged.
But on vercel the build fails sayin i need to enable the experimnetal feature flag, even if the build is next 14
Thanks for any advice provided
This is my next config without the experimental flags after updating to next 14, on my machine the build complets but on vercel i get fails
await import("./env.mjs")
/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,
webpack: (config) => {
config.externals = [...config.externals, "canvas", "jsdom"]
return config
},
}
export default config