refactor: Update next.config.mjs to allow specific origins for server actions and update download.tsx to open download link in a new tab
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {};
|
||||
const nextConfig = {
|
||||
experimental: {
|
||||
serverActions: {
|
||||
// edit: updated to new key. Was previously `allowedForwardedHosts`
|
||||
allowedOrigins: ['localhost:3000', 'get-zen.vercel.app'],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user