Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Added alias for public folder.

Mike Caof62d23c9bc88
diff --git a/jsconfig.json b/jsconfig.json
index f8124a205..738e8a465 100644
--- a/jsconfig.json
+++ b/jsconfig.json
@@ -1,8 +1,5 @@
{
"compilerOptions": {
- "baseUrl": "./src",
- "paths": {
- "public/*": ["./public/*"]
- }
+ "baseUrl": "./src"
}
}
diff --git a/next.config.js b/next.config.js
index 2165a6e01..4ab775107 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
require('dotenv').config();
+const path = require('path');
const pkg = require('./package.json');
const contentSecurityPolicy = `
@@ -92,6 +93,8 @@ const config = {
use: ['@svgr/webpack'],
});
+ config.resolve.alias['public'] = path.resolve('./public');
+
return config;
},
async headers() {
diff --git a/tsconfig.json b/tsconfig.json
index 78b225f49..0faf5fbc2 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -21,7 +21,7 @@
"strictNullChecks": false,
"noEmit": true,
"jsx": "preserve",
- "incremental": true
+ "incremental": false
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]