π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
remove headers from next config as it is supported with output export
Abhinavc2191515eef3
diff --git a/packages/shared/next/next.config.base.js b/packages/shared/next/next.config.base.jsindex e046e565b5..44a0171da7 100644--- a/packages/shared/next/next.config.base.js+++ b/packages/shared/next/next.config.base.js@@ -1,14 +1,6 @@const { withSentryConfig } = require('@sentry/nextjs');const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');-const {- convertToNextHeaderFormat,- buildCSPHeader,- WEB_SECURITY_HEADERS,- CSP_DIRECTIVES,- ALL_ROUTES,-} = require('./utils/headers');-const { getGitSha, getIsSentryEnabled } = require('./utils/sentry');const GIT_SHA = getGitSha();@@ -54,21 +46,6 @@ module.exports = (phase) =>SENTRY_RELEASE: GIT_SHA,NEXT_PUBLIC_IS_TEST_APP: process.env.IS_TEST_RELEASE || 'false',},-- ...(phase === PHASE_DEVELOPMENT_SERVER && {- headers() {- return [- {- // Apply these headers to all routes in your application....- source: ALL_ROUTES,- headers: convertToNextHeaderFormat({- ...WEB_SECURITY_HEADERS,- ...buildCSPHeader(CSP_DIRECTIVES),- }),- },- ];- },- }),webpack: (config, { isServer }) => {if (!isServer) {config.resolve.fallback.fs = false;