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:
mauro 🤙
2024-07-04 10:54:11 +00:00
parent a1149838e6
commit 26dd892f21
4 changed files with 35 additions and 27 deletions

View File

@@ -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;