π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
Move header config to nextConfig
Enno Gelhaus87bdc9aefa10
diff --git a/apps/frontend/next.config.js b/apps/frontend/next.config.jsindex b7769d709..f0f895bf4 100644--- a/apps/frontend/next.config.js+++ b/apps/frontend/next.config.js@@ -6,6 +6,16 @@ const nextConfig = {experimental: {proxyTimeout: 90_000,},+ // Document-Policy header for browser profiling+ async headers() {+ return [{+ source: "/:path*",+ headers: [{+ key: "Document-Policy",+ value: "js-profiling",+ }, ],+ }, ];+ },reactStrictMode: false,transpilePackages: ['crypto-hash'],// Enable production sourcemaps for Sentry@@ -105,15 +115,4 @@ export default withSentryConfig(nextConfig, {// Don't fail the build if Sentry upload fails in monorepo contextreturn;},-- // Document-Policy header for browser profiling- async headers() {- return [{- source: "/:path*",- headers: [{- key: "Document-Policy",- value: "js-profiling",- }, ],- }, ];- },});