Skip to content

Commit f62d23c

Browse files
committed
Added alias for public folder.
1 parent 56ee52e commit f62d23c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jsconfig.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": "./src",
4-
"paths": {
5-
"public/*": ["./public/*"]
6-
}
3+
"baseUrl": "./src"
74
}
85
}

next.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
require('dotenv').config();
3+
const path = require('path');
34
const pkg = require('./package.json');
45

56
const contentSecurityPolicy = `
@@ -92,6 +93,8 @@ const config = {
9293
use: ['@svgr/webpack'],
9394
});
9495

96+
config.resolve.alias['public'] = path.resolve('./public');
97+
9598
return config;
9699
},
97100
async headers() {

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"strictNullChecks": false,
2222
"noEmit": true,
2323
"jsx": "preserve",
24-
"incremental": true
24+
"incremental": false
2525
},
2626
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
2727
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)