Fix Next.js API route for Amplify WEB_COMPUTE platform
- Add .env.production for Amplify environment variable mapping - Update artifacts configuration for WEB_COMPUTE platform - Add explicit nodejs runtime for API route - Enable serverActions in Next.js config - Add debugging output for environment variables 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
// Remove output: 'standalone' for Amplify
|
||||
// Ensure server-side features are enabled
|
||||
experimental: {
|
||||
serverActions: true,
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
Reference in New Issue
Block a user