gluestick/next.config.js

21 lines
415 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true
},
output: "standalone",
// Allow Dex to use gluestick in an iframe
headers: async () => {
return [{
source: "/dex/(.*)",
headers: [{
key: "Content-Security-Policy",
value: `frame-ancestors 'self' ${process.env.DEX_DOMAIN}`
}]
}]
}
};
module.exports = nextConfig;