UNPKG

create-next-core-base

Version:

CLI tool to create Next Base projects with feature selection

36 lines (33 loc) 914 B
/* eslint-disable @typescript-eslint/no-unused-vars */ import type { NextConfig } from "next"; const nextConfig: NextConfig = { reactStrictMode: true, experimental: { serverActions: { bodySizeLimit: "1mb", allowedOrigins: ["*"], }, }, async headers() { return [ { source: "/(.*)", headers: [ { key: "X-Frame-Options", value: "DENY" }, { key: "X-Content-Type-Options", value: "nosniff" }, { key: "Referrer-Policy", value: "no-referrer" }, { key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=()", }, { key: "Strict-Transport-Security", value: "max-age=31536000; includeSubDomains; preload", }, { key: "X-XSS-Protection", value: "1; mode=block" }, ], }, ]; }, }; export default nextConfig;