Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 6a557cd

Browse files
remove unneccessary * from headers rule that broke ntl dev (#152)
1 parent e1f0378 commit 6a557cd

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

cypress/plugins/deployProject.js

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ const getBaseUrl = require("./getBaseUrl");
88
const deployLocally = ({ project }, config) => {
99
process.stdout.write(`Deploying project: ${project}...`);
1010

11-
// _headers breaks netlify dev
12-
removeSync(join(config.buildsFolder, project, "out_publish", "_headers"));
13-
1411
// Start server. Must start in detached mode, so that we can kill it later.
1512
// Otherwise, we seem unable to kill it.
1613
// See: https://medium.com/@almenon214/killing-processes-with-node-772ffdd19aad

lib/steps/setupHeaders.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const setupHeaders = (publishPath) => {
2020
// Add rule to override cache control for static chunks
2121
const indentNewLine = (s) => `\n ${s}`;
2222
const staticChunkRule = [
23-
`/*/_next/static/chunks/*`,
23+
`/_next/static/chunks/*`,
2424
indentNewLine(`cache-control: public`),
2525
indentNewLine(`cache-control: max-age=31536000`),
2626
indentNewLine(`cache-control: immutable`),

tests/__snapshots__/defaults.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Headers creates Netlify headers 1`] = `
44
"# Next-on-Netlify Headers
5-
/*/_next/static/chunks/*
5+
/_next/static/chunks/*
66
cache-control: public
77
cache-control: max-age=31536000
88
cache-control: immutable"

0 commit comments

Comments
 (0)