chatbot-template/next.config.mjs
Jared Palmer a04776256d init
2023-05-19 12:33:56 -04:00

38 lines
774 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
appDir: true,
serverActions: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "vercel.com",
port: "",
pathname: "/api/www/avatar/**",
},
],
},
headers: async () => {
// https://webcontainers.io/guides/quickstart#cross-origin-isolation
return [
{
source: "/(.*)",
headers: [
{
key: "Cross-Origin-Embedder-Policy",
value: "require-corp",
},
{
key: "Cross-Origin-Opener-Policy",
value: "same-origin",
},
],
},
];
},
};
export default nextConfig;