38 lines
774 B
JavaScript
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;
|