File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const isDev = process.env.NODE_ENV === "development";
33
44const cspHeader = `
55 default-src 'self';
6- script-src 'self' 'unsafe-inline'${ isDev ? " 'unsafe-eval'" : "" } https://va.vercel-scripts.com;
6+ script-src 'self' 'unsafe-inline'${ isDev ? " 'unsafe-eval'" : "" } https://va.vercel-scripts.com;
77 style-src 'self' 'unsafe-inline';
88 img-src 'self' blob: data: https://images.ygoprodeck.com https://images.unsplash.com https://tailwindcss.com;
99 font-src 'self' data:;
@@ -18,6 +18,9 @@ const cspHeader = `
1818const nextConfig = {
1919 reactStrictMode : true ,
2020 productionBrowserSourceMaps : false ,
21+ turbopack : {
22+ root : "./" ,
23+ } ,
2124
2225 async headers ( ) {
2326 return [
@@ -26,7 +29,7 @@ const nextConfig = {
2629 headers : [
2730 {
2831 key : "Content-Security-Policy" ,
29- value : cspHeader . replace ( / \s { 2 , } / g, " " ) . trim ( ) ,
32+ value : cspHeader . replace ( / \s { 2 , } / g, " " ) . trim ( ) ,
3033 } ,
3134 {
3235 key : "X-Content-Type-Options" ,
You can’t perform that action at this time.
0 commit comments