This commit is contained in:
Jared Palmer 2023-05-19 12:33:56 -04:00
commit a04776256d
56 changed files with 6808 additions and 0 deletions

38
next.config.mjs Normal file
View file

@ -0,0 +1,38 @@
/** @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;