gdu 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
1
  export declare const withTM: (nextConfig?: {}) => {};
2
+ export declare const defaultSecurityHeaders: {
3
+ key: string;
4
+ value: string;
5
+ }[];
2
6
  export declare const createNextJSConfig: (buildEnv: any) => {
3
7
  distDir: string;
4
8
  reactStrictMode: boolean;
@@ -12,13 +16,6 @@ export declare const createNextJSConfig: (buildEnv: any) => {
12
16
  imageSizes: number[];
13
17
  domains: string[];
14
18
  };
15
- headers(): Promise<{
16
- source: string;
17
- headers: {
18
- key: string;
19
- value: string;
20
- }[];
21
- }[]>;
22
19
  webpack: (defaultConfig: any) => any;
23
20
  };
24
21
  export declare const createNextJSTranspiledConfig: () => any;
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
22
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.createNextJSTranspiledConfig = exports.createNextJSConfig = exports.withTM = void 0;
25
+ exports.createNextJSTranspiledConfig = exports.createNextJSConfig = exports.defaultSecurityHeaders = exports.withTM = void 0;
26
26
  const path_1 = __importStar(require("path"));
27
27
  const next_plugin_1 = require("@vanilla-extract/next-plugin");
28
28
  const dotenv_webpack_1 = __importDefault(require("dotenv-webpack"));
@@ -82,7 +82,7 @@ const allowedFontSources = [
82
82
  ].join(' ');
83
83
  const allowedDataSources = ["'self'", 'blob:'].join(' ');
84
84
  const allowedObjectSources = ["'none'"].join(' ');
85
- const securityHeaders = [
85
+ exports.defaultSecurityHeaders = [
86
86
  {
87
87
  key: 'X-DNS-Prefetch-Control',
88
88
  value: 'on',
@@ -127,16 +127,6 @@ const createNextJSConfig = (buildEnv) => {
127
127
  'cdn-preprod.autoguru.com.au',
128
128
  ],
129
129
  },
130
- async headers() {
131
- return isDev
132
- ? []
133
- : [
134
- {
135
- source: '/(.*)',
136
- headers: securityHeaders,
137
- },
138
- ];
139
- },
140
130
  webpack: (defaultConfig) => {
141
131
  defaultConfig.plugins.push(new webpack_1.DefinePlugin({
142
132
  __DEV__: isDev,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdu",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "private": false,
5
5
  "description": "AutoGuru's development toolkit",
6
6
  "homepage": "https://github.com/autoguru-au/octane/tree/master/packages/gdu#readme",