Skip to content

Commit a180dcc

Browse files
authored
Add missing dependencies to next config file for the tutorial (#2071)
* Add Faust.js tutorial * Remove unnecessary content locations from Tailwind config * Add wp-dev script to package.json * Add .env.local.example file to tutorial app * Add secure headers to example app * Rename next config file * Remove superfluous next config file * Add missing imports to next config file
1 parent fbed8ef commit a180dcc

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1+
const { withFaust, getWpHostname } = require('@faustwp/core');
12
const { createSecureHeaders } = require('next-secure-headers');
23

34
/**
45
* @type {import('next').NextConfig}
56
**/
67
module.exports = withFaust({
7-
reactStrictMode: true,
8-
sassOptions: {
9-
includePaths: ['node_modules'],
10-
},
11-
images: {
12-
domains: [getWpHostname()],
13-
},
14-
15-
async headers() {
16-
return [
17-
{
18-
source: '/:path*',
19-
headers: createSecureHeaders({
20-
xssProtection: false,
21-
}),
22-
},
23-
];
24-
},
8+
reactStrictMode: true,
9+
sassOptions: {
10+
includePaths: ['node_modules'],
11+
},
12+
images: {
13+
domains: [getWpHostname()],
14+
},
15+
async headers() {
16+
return [
17+
{
18+
source: '/:path*',
19+
headers: createSecureHeaders({
20+
xssProtection: false,
21+
}),
22+
},
23+
];
24+
},
2525
});

examples/next/tutorial/next.config.mjs

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)