mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
Replaced __dirname usage.
This commit is contained in:
parent
b5efbbbb2e
commit
73b45a9f5e
11 changed files with 25 additions and 28 deletions
|
|
@ -3,8 +3,8 @@ import 'dotenv/config';
|
|||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
const routesManifestPath = path.resolve(__dirname, '../.next/routes-manifest.json');
|
||||
const originalPath = path.resolve(__dirname, '../.next/routes-manifest-orig.json');
|
||||
const routesManifestPath = path.resolve(process.cwd(), '.next/routes-manifest.json');
|
||||
const originalPath = path.resolve(process.cwd(), '.next/routes-manifest-orig.json');
|
||||
const originalManifest = require(originalPath);
|
||||
|
||||
const API_PATH = '/api/:path*';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue