Files
zkAuth/dapp/next.config.js
2022-09-22 23:53:25 +02:00

28 lines
577 B
JavaScript

/** @type {import('next').NextConfig} */
require("dotenv").config()
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
webpack: (config) => {
config.resolve.fallback = { fs: false }
return config
},
env: {
API_KEY: process.env.API_KEY
},
async headers() {
return [
{
source: "/:path*",
headers: [
{ key: "Access-Control-Allow-Origin", value: "*" },
{ key: "Access-Control-Allow-Methods", value: "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
]
}
]
},
}
module.exports = nextConfig