Skip to content

Commit

Permalink
next: include font, configure csp
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Haals <[email protected]>
  • Loading branch information
jhaals committed Mar 7, 2022
1 parent 8e08f24 commit 56b95d4
Show file tree
Hide file tree
Showing 6 changed files with 3,641 additions and 480 deletions.
1 change: 1 addition & 0 deletions next/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
12 changes: 12 additions & 0 deletions next/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
const { i18n } = require('./next-i18next.config');
const nextSafe = require('next-safe');

const isDev = process.env.NODE_ENV !== 'production';

module.exports = {
i18n,
reactStrictMode: true,
experimental: {
outputStandalone: true,
},
async headers() {
return [
{
// Apply these headers to all routes in your application.
source: '/:path*',
headers: nextSafe({ isDev }),
},
];
},
};
Loading

0 comments on commit 56b95d4

Please sign in to comment.