mirror of
https://github.com/3lLobo/zkAuth.git
synced 2026-01-17 08:18:05 -05:00
36 lines
798 B
JavaScript
36 lines
798 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
require("dotenv").config()
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
webpack: (config) => {
|
|
config.resolve.fallback = { fs: false }
|
|
config.resolve.extensions = ['*', '.mjs', '.js', 'jsx', '.ts', '.tsx', '.json']
|
|
config.module.rules.push(
|
|
{
|
|
test: /\.mjs$/,
|
|
include: /node_modules/,
|
|
type: 'javascript/auto'
|
|
})
|
|
|
|
|
|
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
|