We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 330bdec commit 675c099Copy full SHA for 675c099
template/{{app_name}}/.storybook/main.js
@@ -5,7 +5,11 @@
5
*/
6
// @ts-check
7
8
-import path from "path";
+import path, { dirname } from "path";
9
+import { fileURLToPath } from "url";
10
+
11
+const __filename = fileURLToPath(import.meta.url);
12
+const __dirname = dirname(__filename);
13
14
// Support deploying to a subdirectory, such as GitHub Pages.
15
const NEXT_PUBLIC_BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH ?? "";
0 commit comments